ContextNodeBase.ContainsPropertyData-Methode
Gibt true zurück, wenn das ContextNodeBase-Objekt anwendungsspezifische, unter dem angegebenen Bezeichner gespeicherte Daten enthält.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Syntax
'Declaration
Public Function ContainsPropertyData ( _
propertyDataId As Guid _
) As Boolean
'Usage
Dim instance As ContextNodeBase
Dim propertyDataId As Guid
Dim returnValue As Boolean
returnValue = instance.ContainsPropertyData(propertyDataId)
public bool ContainsPropertyData(
Guid propertyDataId
)
public:
bool ContainsPropertyData(
Guid propertyDataId
)
public boolean ContainsPropertyData(
Guid propertyDataId
)
public function ContainsPropertyData(
propertyDataId : Guid
) : boolean
Parameter
- propertyDataId
Typ: System.Guid
Der Bezeichner für die Daten.
Rückgabewert
Typ: System.Boolean
true , wenn das ContextNodeBase-Objekt anwendungsspezifische Daten enthält, die unterhalb des angegebenen Bezeichners gespeichert sind; false, wenn der Knoten keine anwendungsspezifischen Daten mit dem angegebenen Bezeichner enthält.
Beispiele
In diesem Beispiel wird jeder ContextNodeBase, der ein InkWord in einem InkAnalyzerBase mit dem Namen theInkAnalyzerBase ist, mit einem Zeitstempel versehen. Fügt eine Eigenschaft mit einer Guid namens timeStampGuid hinzu, nachdem überprüft wurde, ob der Knoten bereits einen Zeitstempel enthält.
Dim inkWords As ContextNodeBaseCollection = _
theInkAnalyzerBase.FindNodesOfType(System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.InkWord)
Dim inkWord As ContextNodeBase
For Each inkWord In inkWords
If Not inkWord.ContainsPropertyData(Me.timeStampGuid) Then
inkWord.AddPropertyData(timeStampGuid, DateTime.Now)
End If
Next inkWord
System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection inkWords =
theInkAnalyzerBase.FindNodesOfType(System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.InkWord);
foreach (ContextNodeBase inkWord in inkWords)
{
if (!inkWord.ContainsPropertyData(this.timeStampGuid))
{
inkWord.AddPropertyData(timeStampGuid, DateTime.Now);
}
}
Plattformen
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
Versionsinformationen
.NET Framework
Unterstützt in: 3.0
Siehe auch
Referenz
System.Windows.Ink.AnalysisCore-Namespace
System.Windows.Ink.AnalysisCore.PropertyGuidsForAnalysisHintsBase
System.Windows.Ink.AnalysisCore.PropertyGuidsForContextNodesBase
ContextNodeBase.AddPropertyData
ContextNodeBase.GetPropertyData
ContextNodeBase.RemovePropertyData