Back to Devexpress

LayoutView.FieldCaptionFormat Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutview-c62f7530.md

latest2.2 KB
Original Source

LayoutView.FieldCaptionFormat Property

Gets or sets the pattern used to generate field captions.

Namespace : DevExpress.XtraGrid.Views.Layout

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
[DXCategory("CardOptions")]
[XtraSerializableProperty]
public string FieldCaptionFormat { get; set; }
vb
<DefaultValue("")>
<XtraSerializableProperty>
<DXCategory("CardOptions")>
Public Property FieldCaptionFormat As String

Property Value

TypeDefaultDescription
StringString.Empty

A string that represents the pattern used to generate field captions.

|

Remarks

Field captions in LayoutViews are generated according to the pattern specified by the FieldCaptionFormat property. In this pattern, the {0} placeholder represents the current field’s caption. To get the actual display captions, use the LayoutView.GetFieldCaption method. It returns field display captions generated according to the FieldCaptionFormat property.

The default pattern (“{0}:”) means that field captions are followed by the colon characters.

See Also

CardCaptionFormat

Caption

LayoutView Class

LayoutView Members

DevExpress.XtraGrid.Views.Layout Namespace