Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BadgeDefaultProperties.TextMargin Property

Gets or sets margins for this Badge‘s text.

Namespace: DevExpress.Utils.VisualEffects

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

[DefaultValue(null)]
[DXCategory("Layout")]
public Padding? TextMargin { get; set; }

#Property Value

Type Default Description
Nullable<Padding> null

A Padding structure that specifies margins for this Badge‘s text.

#Remarks

The TextMargin property specifies margins around the badge’s text, set by the BadgeDefaultProperties.Text property. This forms the bounds of a text region, according to which badge images are stretched (see the BadgeDefaultProperties.ImageOptions.StretchImage property).

If the TextMargin property is not set, this badge inherits its text margins from the BadgeProperties.TextMargin property.

See Also