Back to Devexpress

XtraMessageBoxArgs.UseGdiPlusTextPainter Property

windowsforms-devexpress-dot-xtraeditors-dot-xtramessageboxargs-8db7be0f.md

latest2.3 KB
Original Source

XtraMessageBoxArgs.UseGdiPlusTextPainter Property

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool UseGdiPlusTextPainter { get; set; }
vb
Public Property UseGdiPlusTextPainter As Boolean

Property Value

TypeDescription
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.

csharp
XtraMessageBoxArgs args = new XtraMessageBoxArgs();  
args.UseGdiPlusTextPainter = true;  
args.Text = "TestTes \t\t\t aaa \nTest\t\t\t bbb";  
XtraMessageBox.Show(args);
vb
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.

csharp
DevExpress.Utils.TextOptions.DefaultStringFormat.SetTabStops(0, new float[]{ 50, 50})
vb
DevExpress.Utils.TextOptions.DefaultStringFormat.SetTabStops(0, New Single() {50, 50})

See Also

XtraMessageBoxArgs Class

XtraMessageBoxArgs Members

DevExpress.XtraEditors Namespace