NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

OSFeature.GDI_LONG_STRINGS

Specifies that the Windows Graphics Device Interface supports any length string. This static (in Visual Basic Shared) field is read-only.

[Visual Basic]
Public Shared ReadOnly GDI_LONG_STRINGS As Object
[C#]
public static readonly object GDI_LONG_STRINGS;
[C++]
public: static readonly Object* GDI_LONG_STRINGS;
[JScript]
public static var GDI_LONG_STRINGS : Object;

Remarks

Some versions of the Windows GDI have a limitation on the length of strings that GDI can render. If the current operating system has a GDI version that supports any length string, then this feature is present.

To determine if the Windows GDI supports any length string, use feature to call the base class method IsPresent with GDI_LONG_STRINGS to specify the feature to look for. Or call the GetVersionPresent method of feature with GDI_LONG_STRINGS to specify the feature.

Example [Visual Basic]

The following example determines whether the GDI supports long strings. The base class method IsPresent is called with GDI_LONG_STRINGS as the feature to look for. The result is displayed in a text box. This code assumes Button1 and TextBox1 have been instantiated.

[Visual Basic]

Private Sub LongStringInterface()
   'Print whether the feature is available.
   If (OSFeature.feature.IsPresent("OSFeature.GDI_LONG_STRINGS")) Then
      TextBox1.Text = "This interface supports long strings"
   Else
      TextBox1.Text = "This interface does not support long strings"
   End If
End Sub

End Sub

See Also

OSFeature Class | OSFeature Members | System.WinForms Namespace | IsPresent | GetVersionPresent | DEVICECONTEXT_LIMITED | LAYERED_WINDOWS