インク描画で図形の名前を表す String を取得するためのグローバル一意識別子 (GUID) を指定します。
名前空間 : System.Windows.Ink
アセンブリ : IAWinFX (IAWinFX.dll 内)
構文
'宣言
Public Shared ReadOnly ShapeName As Guid
'使用
Dim value As Guid
value = PropertyGuidsForContextNodes.ShapeName
public static readonly Guid ShapeName
public:
static initonly Guid ShapeName
public static final Guid ShapeName
public static final var ShapeName : Guid
解説
ShapeName フィールドは、InkDrawing 型の ContextNode の図形の名前を表しています。現在 InkAnalysis API では、次の図形の名前をサポートしています。
Ellipse (楕円)
Circle (円)
Triangle (三角形)
IsoscelesTriangle (二等辺三角形)
EquilateralTriangle (正三角形)
RightTriangle (直角三角形)
Quadrilateral (四辺形)
Rectangle (長方形)
Square (正方形)
Diamond (ひし形)
Trapezoid (台形)
Parallelogram (平行四辺形)
Pentagon (五角形)
Hexagon (六角形)
例
次の例では、AnalysisHintNode の ContainsPropertyData メソッドで既存の ShapeName を確認します。ShapeName フィールドが存在する場合、返される String 型のプロパティ データにより 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);
}
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0
参照
参照
PropertyGuidsForContextNodes クラス