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 Guid Midline
public static final var Midline : Guid
Not applicable.

Remarks

The Midline field represents the midline on a ContextNode of type InkWord. Midlines are the imaginary horizontal lines with which the top of the main body of each character, excluding extenders, is aligned.

Example

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

PropertyGuidsForContextNodes Class
PropertyGuidsForContextNodes Members
System.Windows.Ink Namespace