Share via


PropertyGuidsForContextNodes.AlignmentLevel Field

Specifies the globally unique identifier (GUID) for getting and setting the integer that represents the alignment level for a paragraph.

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

Syntax

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

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

Remarks

The AlignmentLevel field represents the alignment level on a ContextNode of type Paragraph. The alignment level is the number of indents or tab stops each paragraph has relative to other paragraphs. The alignment level does not represent a specific tab distance from the margin.

Examples

The following example checks for an existing AlignmentLevel in the ContainsPropertyData method of an AnalysisHintNode. If the AlignmentLevel field exists, it is converted to an integer and populates the variable, myAlignmentLevel.

' Get the relative number of indents or tab stops on a paragraph 
If myAnalysisHintNode.ContainsPropertyData( _
   PropertyGuidsForContextNodes.AlignmentLevel) Then 

    Dim myAlignmentLevel As Integer = _
        CType(myAnalysisHintNode.GetPropertyData( _
        PropertyGuidsForContextNodes.AlignmentLevel), Integer)
End If
// Get the relative number of indents or tab stops on a paragraph 
if (myAnalysisHintNode.ContainsPropertyData(
    PropertyGuidsForContextNodes.AlignmentLevel))
{
    int myAlignmentLevel =
        (int)myAnalysisHintNode.GetPropertyData(
        PropertyGuidsForContextNodes.AlignmentLevel);
}

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