Share via


PropertyGuidsForContextNodes.Midline Field

Specifies the globally unique identifier (GUID) for getting the point array that represents the midline on an ink word.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Shared ReadOnly Midline As Guid
'Usage
Dim value As Guid 

value = PropertyGuidsForContextNodes.Midline
public static readonly Guid Midline
public:
static initonly Guid Midline
public static final var Midline : Guid

Remarks

The Midline field represents the midline on a ContextNode of type InkWord. A midline is the imaginary horizontal lines with which the top of the main body of each character, excluding extenders, is aligned. For example, the midline for the Latin letter "d" is the top of the circle.

Examples

The following example checks for an existing Midline in the ContainsPropertyData method of an AnalysisHintNode. If the Midline field exists, it is converted to a point array to populate myMidline.

' Get the line where the top of each character is aligned on an ink word 
If myAnalysisHintNode.ContainsPropertyData( _
   PropertyGuidsForContextNodes.Midline) Then 

    Dim myMidline As Integer() = _
        CType(myAnalysisHintNode.GetPropertyData( _
        PropertyGuidsForContextNodes.Midline), Integer())
End If
// Get the line where the top of each character is aligned on an ink word 
if (myAnalysisHintNode.ContainsPropertyData(
    PropertyGuidsForContextNodes.Midline))
{
    int[] myMidline =
        (int[])myAnalysisHintNode.GetPropertyData(
        PropertyGuidsForContextNodes.Midline);
}

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

PropertyGuidsForContextNodes Class

PropertyGuidsForContextNodes Members

System.Windows.Ink Namespace