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

XtraMessageBoxArgs.UseGdiPlusTextPainter Property

Gets or sets whether to use GDI+ to render strings.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public bool UseGdiPlusTextPainter { get; set; }

#Property Value

Type Description
Boolean

true to use GDI+ to render strings; otherwise, false.

#Remarks

Set the UseGdiPlusTextPainter property to true to use GDI+ to render strings. This setting is required to render the tab characters correctly.

XtraMessageBoxArgs args = new XtraMessageBoxArgs();  
args.UseGdiPlusTextPainter = true;  
args.Text = "TestTes \t\t\t aaa \nTest\t\t\t bbb";  
XtraMessageBox.Show(args);

Use the StringFormat.SetTabStops(Single, Single[]) method to specify tab stops. Call this method when the application starts.

DevExpress.Utils.TextOptions.DefaultStringFormat.SetTabStops(0, new float[]{ 50, 50})
See Also