de la propiedad HtmlValidationContext.AllowFonts
Obtiene o establece la restricción de que permite a fuente de etiquetas del elemento para agregarse en el código HTML.
Espacio de nombres: Microsoft.SharePoint.Publishing.Fields
Ensamblado: Microsoft.SharePoint.Publishing (en Microsoft.SharePoint.Publishing.dll)
Sintaxis
'Declaración
Public Property AllowFonts As Boolean
Get
Set
'Uso
Dim instance As HtmlValidationContext
Dim value As Boolean
value = instance.AllowFonts
instance.AllowFonts = value
public bool AllowFonts { get; set; }
Valor de propiedad
Tipo: System.Boolean
Cuando se establece en True, se permiten etiquetas de elemento font.
Ejemplos
// Set the constraint properties to any desired combination of true and false
validationContext.AllowFonts = true;
validationContext.AllowHeadings = false;
validationContext.AllowHyperlinks = true;
validationContext.AllowImages = false;
validationContext.AllowLists = false;
validationContext.AllowTables = true;
validationContext.AllowTextMarkup = false;
Nota
Este ejemplo forma parte de la muestra más grande de ValidateHtmlCode en el tema de HtmlValidationContext .
Vea también
Referencia
Miembros HtmlValidationContext