Condividi tramite


Campo PropertyGuidsForContextNodes.ShapeName

Aggiornamento: novembre 2007

Specifica il GUID per ottenere un oggetto String che rappresenta il nome della forma in un disegno dell'input penna.

Spazio dei nomi:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Sintassi

'Dichiarazione
Public Shared ReadOnly ShapeName As Guid
'Utilizzo
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

Note

Il campo ShapeName rappresenta il nome della forma in un oggetto ContextNode di tipo InkDrawing. Attualmente l'API InkAnalysis supporta i seguenti nomi di forma:

  • Ellipse

  • Circle

  • Triangle

  • IsoscelesTriangle

  • EquilateralTriangle

  • RightTriangle

  • Quadrilateral

  • Rectangle

  • Square

  • Diamond

  • Trapezoid

  • Parallelogram

  • Pentagon

  • Hexagon

Esempi

Nell'esempio seguente viene verificata l'esistenza di un campo ShapeName nel metodo ContainsPropertyData di un oggetto AnalysisHintNode. Se il campo ShapeName esiste, i dati della proprietà restituiti di tipo String popolano 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);
}

Piattaforme

Windows Vista

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

PropertyGuidsForContextNodes Classe

Membri PropertyGuidsForContextNodes

Spazio dei nomi System.Windows.Ink