Skip to main content
All docs
V25.1
  • XtraMessageBoxArgs.UseGdiPlusTextPainter Property

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

    Namespace: DevExpress.XtraEditors

    Assembly: DevExpress.XtraEditors.v25.1.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