FlexGrid for WinForms
UseCompatibleTextRendering Property



Specifies whether text rendering should be compatible with previous releases of WinForms.
Syntax
'Declaration
 
<C1DescriptionAttribute("Specifies whether text rendering should be compatible with previous releases of WinForms.")>
<CategoryAttribute("Appearance")>
Public Property UseCompatibleTextRendering As Boolean
'Usage
 
Dim instance As C1FlexGridBase
Dim value As Boolean
 
instance.UseCompatibleTextRendering = value
 
value = instance.UseCompatibleTextRendering
[C1Description("Specifies whether text rendering should be compatible with previous releases of WinForms.")]
[Category("Appearance")]
public bool UseCompatibleTextRendering {get; set;}
[C1Description("Specifies whether text rendering should be compatible with previous releases of WinForms.")]
[Category("Appearance")]
public:
property bool UseCompatibleTextRendering {
   bool get();
   void set (    bool value);
}
Remarks

This property determines whether the control should render text using the System.Drawing.Graphics class (compatible with previous versions), or the new System.Windows.Forms.TextRenderer class (available in .NET 2.0 and later).

The System.Windows.Forms.TextRenderer class supports complex scripts and Uniscribe APIs, making it better suited for some international applications.

However, the System.Windows.Forms.TextRenderer class seems to render about 25% slower than the traditional method.

You may want to try both modes and select the one that matches the appearance of other controls and forms in your application.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback