Share via


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 String GetShapeName ()
public function GetShapeName () : String
Not applicable.

Return Value

Returns the name of the recognized shape of the InkDrawingNode.

Remarks

An empty string is returned if the shape is not recognized.

Example

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 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

InkDrawingNode Class
InkDrawingNode Members
System.Windows.Ink Namespace