Share via


PropertyGuidsForContextNodes.ShapeName Field

Specifies the globally unique identifier (GUID) for getting String that represents the shape name on an ink drawing.

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

Syntax

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

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

Remarks

The ShapeName field represents the name of the shape on a ContextNode of type InkDrawing. Currently the InkAnalysis API supports the following shape names:

  • Ellipse

  • Circle

  • Triangle

  • IsoscelesTriangle

  • EquilateralTriangle

  • RightTriangle

  • Quadrilateral

  • Rectangle

  • Square

  • Diamond

  • Trapezoid

  • Parallelogram

  • Pentagon

  • Hexagon

Examples

The following example checks for an existing ShapeName in the ContainsPropertyData method of an AnalysisHintNode. If the ShapeName field exists, the returned property data of type String populates myShapeName.

' Get the name of the shape on an ink drawing 
If myAnalysisHintNode.ContainsPropertyData( _
   PropertyGuidsForContextNodes.ShapeName) Then 

    Dim myShapeName As String = _
        CStr(myAnalysisHintNode.GetPropertyData( _
        PropertyGuidsForContextNodes.ShapeName))
End If
// Get the name of the shape on an ink drawing 
if (myAnalysisHintNode.ContainsPropertyData(
    PropertyGuidsForContextNodes.ShapeName))
{
    string myShapeName =
        (string)myAnalysisHintNode.GetPropertyData(
        PropertyGuidsForContextNodes.ShapeName);
}

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