windowsforms-devexpress-dot-xtraeditors-dot-xtramessageboxargs-8db7be0f.md
Gets or sets whether to use GDI+ to render strings.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public bool UseGdiPlusTextPainter { get; set; }
Public Property UseGdiPlusTextPainter As Boolean
| Type | Description |
|---|---|
| Boolean |
true to use GDI+ to render strings; otherwise, false.
|
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);
Dim args As New XtraMessageBoxArgs()
args.UseGdiPlusTextPainter = True
args.Text = "TestTes " & vbTab & vbTab & vbTab & " aaa " & vbLf & "Test" & vbTab & vbTab & vbTab & " 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})
DevExpress.Utils.TextOptions.DefaultStringFormat.SetTabStops(0, New Single() {50, 50})
See Also