Partager via


ExtendedProperties Class

ExtendedProperties Class

Represents a collection of ExtendedProperty objects that contain application-defined data.

Definition

Visual Basic .NET Public Class ExtendedProperties
Inherits Object
Implements ICollection, IEnumerable
C# public class ExtendedProperties : Object,
ICollection, IEnumerable
Managed C++ public __gc class ExtendedProperties : public Object,
ICollection, IEnumerable

Members Table

The following table lists the members exposed by the object.

Methods

Method Description
Add Creates an ExtendedProperty object and adds it to the ExtendedProperties collection.
Clear Clears all the ExtendedProperty objects from the ExtendedProperties collection.
Contains Indicates whether the ExtendedProperties collection contains a specific ExtendedProperty object.
CopyTo Copies all of the elements of the current ExtendedProperties collection to the specified one-dimensional array, starting at the specified destination array index.
DoesPropertyExist Indicates whether a specified ExtendedProperty object exists in the ExtendedProperties collection.
Equals Leave Site Determines whether two Object Leave Site instances are equal. Inherited from Object Leave Site.
Finalize Leave Site Allows an Object Leave Site to attempt to free resources and perform other cleanup operations before the Object Leave Site is reclaimed by garbage collection. Inherited from Object Leave Site.
get_Item Returns the ExtendedProperty object at the known index in a ExtendedProperties collection.
GetEnumerator Returns an object that implements the System.Collections.IEnumerator Leave Site interface that can iterate through the ExtendedProperty objects within the ExtendedProperties collection.
GetHashCode Leave Site Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. Inherited from Object Leave Site.
GetType Leave Site Gets the Type Leave Site of the current instance. Inherited from Object Leave Site.
IEnumerable.GetEnumerator
IndexOf Returns the index of a specific ExtendedProperty object within an ExtendedProperties collection.
MemberwiseClone Leave Site Creates a shallow copy of the current Object Leave Site. Inherited from Object Leave Site.
static (Shared in Visual Basic .NET)ReferenceEquals Leave Site Determines whether the specified Object Leave Site instances are the same instance. Inherited from Object Leave Site.
Remove Removes an ExtendedProperty object from the ExtendedProperties collection.
RemoveAt Removes an ExtendedProperty object at the specified index of the ExtendedProperties collection.
ToString Leave Site Returns a String Leave Site that represents the current Object Leave Site. Inherited from Object Leave Site.

Properties

Property Description
Count Gets the number of ExtendedProperty objects contained in the ExtendedProperties collection.
IsFixedSize Gets a value indicating whether the ExtendedProperties collection has a fixed size.
IsReadOnly Gets a value indicating whether the ExtendedProperties collection is read-only.
IsSynchronized Gets a value that indicates whether or not access to the ExtendedProperties collection is synchronized (thread safe).
Item Gets the ExtendedProperty object at the specified index within the ExtendedProperties collection.
SyncRoot Returns an object that can be used to synchronize access to the ExtendedProperties collection.

Inheritance Hierarchy

Object Leave Site

ExtendedProperties

Remarks

The extended property data is indexed by an application-specific globally unique identifier (GUID).

You cannot store an empty ExtendedProperties object. The object must contain data before it can be stored. For example, if you try to add extended properties to a Stroke object for later use, an exception is thrown if the ExtendedProperties collection contains no data.

ExtendedProperties collections may be added to the Stroke, the DrawingAttributes, and the Ink objects.

Class Information

Namespace Microsoft.Ink
Assembly Microsoft.Ink (microsoft.ink.dll)
Strong Name Microsoft.Ink, Version=1.7.4009.0, Culture=neutral, PublicKeyToken=a2870d9cc4d021c8

See Also