Skip to main content

BadgeDefaultProperties.AllowHtmDrawText Property

Gets or sets whether or not this badge recognizes HTML tags in its text.

Namespace: DevExpress.Utils.VisualEffects

Assembly: DevExpress.Utils.v24.1.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
public DefaultBoolean AllowHtmDrawText { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean enumerator value that specifies whether or not this badge recognizes HTML tags in its text.

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

Remarks

You can include HTML tags in badge text strings (the BadgeDefaultProperties.Text property) to format these strings. Refer to the HTML Text Formatting article for the list of supported tags.

If the AllowHtmDrawText property equals DefaultBoolean.Default, the badge inherits the global behavior specified by the BadgeProperties.AllowHtmDrawText property. Otherwise, it overrides this global setting.

See Also