ContextNode.GetPropertyData - метод
Обновлен: Ноябрь 2007
Returns application-specific data that was added with the specified identifier.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public Function GetPropertyData ( _
propertyDataId As Guid _
) As Object
'Применение
Dim instance As ContextNode
Dim propertyDataId As Guid
Dim returnValue As Object
returnValue = instance.GetPropertyData(propertyDataId)
public Object GetPropertyData(
Guid propertyDataId
)
public:
Object^ GetPropertyData(
Guid propertyDataId
)
public Object GetPropertyData(
Guid propertyDataId
)
public function GetPropertyData(
propertyDataId : Guid
) : Object
Параметры
- propertyDataId
Тип: System.Guid
The identifier for the data.
Возвращаемое значение
Тип: System.Object
The application-specific data that was added with the specified identifier.
Заметки
In addition to application-specific data, you can also use this method to get internal data stored with the identifiers described by the PropertyGuidsForAnalysisHints and PropertyGuidsForContextNodes classes.
Примеры
This example looks for a property that was added with the Guid, timeStampGuid. It then puts the value into the Text property of a Label, timeStampLabel.
If inkWord.ContainsPropertyData(Me.timeStampGuid) Then
Dim timeStamp As DateTime = _
CType(inkWord.GetPropertyData(Me.timeStampGuid), DateTime)
timeStampLabel.Text = timeStamp.ToShortTimeString()
End If
if (inkWord.ContainsPropertyData(this.timeStampGuid))
{
DateTime timeStamp =
(DateTime)inkWord.GetPropertyData(this.timeStampGuid);
timeStampLabel.Text = timeStamp.ToShortTimeString();
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
Microsoft.Ink - пространство имен
Microsoft.Ink.PropertyGuidsForAnalysisHints
Microsoft.Ink.PropertyGuidsForContextNodes
ContextNode.ContainsPropertyData
ContextNode.RemovePropertyData