InkDrawingNode.GetShapeName Method
Returns the name of the recognized shape of the InkDrawingNode.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public Function GetShapeName As String
'Usage
Dim instance As InkDrawingNode
Dim returnValue As String
returnValue = instance.GetShapeName()
public string GetShapeName()
public:
String^ GetShapeName()
public function GetShapeName() : String
Return Value
Type: System.String
Returns the name of the recognized shape of the InkDrawingNode.
Remarks
An empty string is returned if the shape is not recognized.
GetShapeName currently returns shapes from the following list:
Ellipse
Circle
Triangle
IsoscelesTriangle
EquilateralTriangle
RightTriangle
Quadrilateral
Rectangle
Square
Diamond
Trapezoid
Parallelogram
Pentagon
Hexagon
Examples
This example takes the result of GetShapeName and puts it into the Text property of a TextBox, selectedResultsTextBox.
selectedResultsTextBox.Text = drawingNode.GetShapeName()
selectedResultsTextBox.Text = drawingNode.GetShapeName();
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