PropertyGuidsForContextNodes.ShapeName 字段

指定一个全局唯一标识符 (GUID),该 GUID 可用于获取表示墨迹绘图上的形状名称的 String

命名空间:  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 字段表示类型为 InkDrawingContextNode 上的形状的名称。InkAnalysis API 目前支持以下形状名称:

  • Ellipse

  • Circle

  • Triangle

  • IsoscelesTriangle

  • EquilateralTriangle

  • RightTriangle

  • Quadrilateral

  • Rectangle

  • Square

  • Diamond

  • Trapezoid

  • Parallelogram

  • Pentagon

  • Hexagon

示例

下面的示例在 AnalysisHintNodeContainsPropertyData 方法中检查确认是否有 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 类

PropertyGuidsForContextNodes 成员

System.Windows.Ink 命名空间