[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Storage.PropertyBag

Class PropertyBag

Namespace
GrapeCity.Documents.DX.Storage
Assembly
GcDocs.DX.Windows.dll

Implementation of OLE IPropertyBag2.

public class PropertyBag : ComObject, IDisposable, IUnknown
Inheritance
object
PropertyBag
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

PropertyBag(IntPtr)

Initializes a new instance of the PropertyBag class.

public PropertyBag(IntPtr propertyBagPointer)

Parameters

propertyBagPointer System.IntPtr

The property bag pointer.

Properties

Count

Gets the number of properties.

public int Count { get; }

Property Value

int

Keys

Gets the keys.

public string[] Keys { get; }

Property Value

string[]

Methods

Get(string)

Gets the value of the property with this name.

public object Get(string name)

Parameters

name string

The name.

Returns

object

Value of the property

Get<T1, T2>(PropertyBagKey<T1, T2>)

Gets the value of the property by using a PropertyBagKey<T1, T2>

public T1 Get<T1, T2>(PropertyBagKey<T1, T2> propertyKey)

Parameters

propertyKey PropertyBagKey<T1, T2>

The property key.

Returns

T1

Value of the property

Type Parameters

T1

The public type of this property.

T2

The marshaling type of this property.

NativePointerUpdated(IntPtr)

Method called when the NativePointer is updated.

protected override void NativePointerUpdated(IntPtr oldNativePointer)

Parameters

oldNativePointer System.IntPtr

Set(string, object)

Sets the value of the property with this name

public void Set(string name, object value)

Parameters

name string

The name.

value object

The value.

Set<T1, T2>(PropertyBagKey<T1, T2>, T1)

Sets the value of the property by using a PropertyBagKey<T1, T2>

public void Set<T1, T2>(PropertyBagKey<T1, T2> propertyKey, T1 value)

Parameters

propertyKey PropertyBagKey<T1, T2>

The property key.

value T1

The value.

Type Parameters

T1

The public type of this property.

T2

The marshaling type of this property.