Compartir a través de


Ink.ExtendedProperties Property

Gets the collection of application-defined data.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public ReadOnly Property ExtendedProperties As ExtendedProperties
'Usage
Dim instance As Ink
Dim value As ExtendedProperties

value = instance.ExtendedProperties
public ExtendedProperties ExtendedProperties { get; }
public:
property ExtendedProperties^ ExtendedProperties {
    ExtendedProperties^ get ();
}
/** @property */
public ExtendedProperties get_ExtendedProperties ()
public function get ExtendedProperties () : ExtendedProperties
Not applicable.

Property Value

The collection of application-defined data.

Remarks

Applications can use the ExtendedProperties property to access the custom data that is stored in the Ink object. This custom data is automatically serialized with the object.

Example

This C# example adds an ExtendedProperties property to an Ink object, theInk. The ExtendedProperties property conatins the time stamp for when the Ink object is saved, referenced by a Guid, theTimeGuid.

// ...
// Saving
theInk.ExtendedProperties.Add(theTimeGuid, DateTime.Now);
byte[] inkData = theInk.Save();

// ...
// Loading
Ink newInk = new Ink();
newInk.Load(inkData);
DateTime whenSaved = (DateTime) newInk.ExtendedProperties[theTimeGuid].Data;

This Microsoft Visual Basic.NET example adds an ExtendedProperties property to an Ink object, theInk. The ExtendedProperties property conatins the time stamp for when the Ink object is saved, referenced by aT:System.Guid, theTimeGuid.

'...
'Saving
theInk.ExtendedProperties.Add(theTimeGuid, DateTime.Now)
Dim inkData As Byte() = theInk.Save()

'...
'Loading
Dim newInk As New Ink()
newInk.Load(inkData)
Dim whenSaved As DateTime = _
    newInk.ExtendedProperties(theTimeGuid).Data

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Ink Class
Ink Members
Microsoft.Ink Namespace
ExtendedProperties
ExtendedProperty