[]
ID2D1Properties
[Guid("483473d7-cd46-4f9d-9d3a-3112aa80159d")]
public class Properties : ComObject, IDisposable, IUnknown
Initializes a new instance of the Properties class.
public Properties(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
Gets or sets Cached property.
public bool Cached { get; set; }
Gets the value of the specified property by index.
public bool GetBoolValue(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public bool GetBoolValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public ColorF GetColorFValue(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public ColorF GetColorFValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public T GetComObjectValue<T>(int index) where T : ComObject
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
TGets the value of the specified property by name.
public T GetComObjectValueByName<T>(string name) where T : ComObject
name stringThe name of the property.
The value of the specified property by name.
TGets the value of the specified property by index.
public T GetEnumValue<T>(int index) where T : struct
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
TGets the value of the specified property by name.
public T GetEnumValueByName<T>(string name) where T : struct
name stringThe name of the property.
The value of the specified property by name.
TGets the value of the specified property by index.
public float GetFloatValue(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public float GetFloatValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public Guid GetGuidValue(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public Guid GetGuidValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public int GetIntValue(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public int GetIntValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public Matrix3x2 GetMatrix3x2Value(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public Matrix3x2 GetMatrix3x2ValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public Matrix4x4 GetMatrix4x4Value(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public Matrix4x4 GetMatrix4x4ValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public Matrix5x4 GetMatrix5x4Value(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public Matrix5x4 GetMatrix5x4ValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public Point2F GetPoint2FValue(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public Point2F GetPoint2FValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
unsigned int ID2D1Properties::GetPropertyCount()
public int GetPropertyCount()
unsigned int ID2D1Properties::GetPropertyIndex([In] const wchar_t* name)
public int GetPropertyIndex(string name)
name stringHRESULT ID2D1Properties::GetPropertyName([In] unsigned int index,[Out, Buffer] wchar_t* name,[In] unsigned int nameCount)
public void GetPropertyName(int index, IntPtr name, int nameCount)
index intname System.IntPtrnameCount intGets the number of characters for the given property name.
public string GetPropertyName(int index)
index intThe index of the property for which the name is being returned.
The name of the property
This method returns an empty string if index is invalid.
unsigned int ID2D1Properties::GetPropertyNameLength([In] unsigned int index)
public int GetPropertyNameLength(int index)
index intGets the value of the specified property by index.
public RectF GetRectFValue(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public RectF GetRectFValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
HRESULT ID2D1Properties::GetSubProperties([In] unsigned int index,[Out, Optional] ID2D1Properties** subProperties)
public Properties GetSubProperties(int index)
index intD2D1_PROPERTY_TYPE ID2D1Properties::GetType([In] unsigned int index)
public PropertyType GetTypeInfo(int index)
index intGets the value of the specified property by index.
[CLSCompliant(false)]
public uint GetUIntValue(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
[CLSCompliant(false)]
public uint GetUIntValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
HRESULT ID2D1Properties::GetValue([In] unsigned int index,[In] D2D1_PROPERTY_TYPE type,[Out, Buffer] void* data,[In] unsigned int dataSize)
public void GetValue(int index, PropertyType type, IntPtr data, int dataSize)
index inttype PropertyTypedata System.IntPtrdataSize intGets the value of the specified property by index.
public T GetValue<T>(int index, PropertyType type) where T : struct
index intThe index of the property from which the data is to be obtained.
type PropertyTypeProperty type.
The value of the specified property by index.
TGets the value of the specified property by name.
public T GetValue<T>(string name, PropertyType type) where T : struct
name stringThe name of the property.
type PropertyTypeProperty type.
The value of the specified property by name.
THRESULT ID2D1Properties::GetValueByName([In] const wchar_t* name,[In] D2D1_PROPERTY_TYPE type,[Out, Buffer] void* data,[In] unsigned int dataSize)
public void GetValueByName(string name, PropertyType type, IntPtr data, int dataSize)
name stringtype PropertyTypedata System.IntPtrdataSize intunsigned int ID2D1Properties::GetValueSize([In] unsigned int index)
public int GetValueSize(int index)
index intGets the value of the specified property by index.
public Vector2 GetVector2Value(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public Vector2 GetVector2ValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public Vector3 GetVector3Value(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public Vector3 GetVector3ValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Gets the value of the specified property by index.
public Vector4 GetVector4Value(int index)
index intThe index of the property from which the data is to be obtained.
The value of the specified property by index.
Gets the value of the specified property by name.
public Vector4 GetVector4ValueByName(string name)
name stringThe name of the property.
The value of the specified property by name.
Sets the named property to the given value.
public void SetEnumValue<T>(int index, T value) where T : struct
index intIndex of the property
value TValue of the property
TSets the named property to the given value.
public void SetValue(int index, ColorF value)
index intIndex of the property
value ColorFValue of the property
HRESULT ID2D1Properties::SetValue([In] unsigned int index,[In] D2D1_PROPERTY_TYPE type,[In, Buffer] const void* data,[In] unsigned int dataSize)
public void SetValue(int index, PropertyType type, IntPtr data, int dataSize)
index inttype PropertyTypedata System.IntPtrdataSize intSets the named property to the given value.
public void SetValue(int index, Matrix3x2 value)
index intIndex of the property
value Matrix3x2Value of the property
Sets the named property to the given value.
public void SetValue(int index, Matrix4x4 value)
index intIndex of the property
value Matrix4x4Value of the property
Sets the named property to the given value.
public void SetValue(int index, Matrix5x4 value)
index intIndex of the property
value Matrix5x4Value of the property
Sets the named property to the given value.
public void SetValue(int index, Point2F value)
index intIndex of the property
value Point2FValue of the property
Sets the named property to the given value.
public void SetValue(int index, RectF value)
index intIndex of the property
value RectFValue of the property
Sets the named property to the given value.
public void SetValue(int index, Vector2 value)
index intIndex of the property
value Vector2Value of the property
Sets the named property to the given value.
public void SetValue(int index, Vector3 value)
index intIndex of the property
value Vector3Value of the property
Sets the named property to the given value.
public void SetValue(int index, Vector4 value)
index intIndex of the property
value Vector4Value of the property
Sets the named property to the given value.
public void SetValue(int index, bool value)
index intIndex of the property
value boolValue of the property
Sets the named property to the given value.
public void SetValue(int index, Guid value)
index intIndex of the property
value System.GuidValue of the property
Sets the named property to the given value.
public void SetValue(int index, int value)
index intIndex of the property
value intValue of the property
Sets the named property to the given value.
public void SetValue(int index, float value)
index intIndex of the property
value floatValue of the property
Sets the named property to the given value.
public void SetValue(int index, string value)
index intIndex of the property
value stringValue of the property
Sets the named property to the given value.
[CLSCompliant(false)]
public void SetValue(int index, uint value)
index intIndex of the property
value uintValue of the property
Sets the named property to the given value.
public void SetValue<T>(int index, T value) where T : ComObject
index intIndex of the property
value TValue of the property
TSets the named property to the given value.
public void SetValue<T>(int index, PropertyType type, T value) where T : struct
index intIndex of the property
type PropertyTypeProperty type.
value TValue of the property
TSets the named property to the given value.
public void SetValueByName(string name, ColorF value)
name stringName of the property
value ColorFValue of the property
HRESULT ID2D1Properties::SetValueByName([In] const wchar_t* name,[In] D2D1_PROPERTY_TYPE type,[In, Buffer] const void* data,[In] unsigned int dataSize)
public void SetValueByName(string name, PropertyType type, IntPtr data, int dataSize)
name stringtype PropertyTypedata System.IntPtrdataSize intSets the named property to the given value.
public void SetValueByName(string name, Matrix3x2 value)
name stringName of the property
value Matrix3x2Value of the property
Sets the named property to the given value.
public void SetValueByName(string name, Matrix4x4 value)
name stringName of the property
value Matrix4x4Value of the property
Sets the named property to the given value.
public void SetValueByName(string name, Matrix5x4 value)
name stringName of the property
value Matrix5x4Value of the property
Sets the named property to the given value.
public void SetValueByName(string name, Point2F value)
name stringName of the property
value Point2FValue of the property
Sets the named property to the given value.
public void SetValueByName(string name, RectF value)
name stringName of the property
value RectFValue of the property
Sets the named property to the given value.
public void SetValueByName(string name, Vector2 value)
name stringName of the property
value Vector2Value of the property
Sets the named property to the given value.
public void SetValueByName(string name, Vector3 value)
name stringName of the property
value Vector3Value of the property
Sets the named property to the given value.
public void SetValueByName(string name, Vector4 value)
name stringName of the property
value Vector4Value of the property
Sets the named property to the given value.
public void SetValueByName(string name, bool value)
name stringName of the property
value boolValue of the property
Sets the named property to the given value.
public void SetValueByName(string name, Guid value)
name stringName of the property
value System.GuidValue of the property
Sets the named property to the given value.
public void SetValueByName(string name, int value)
name stringName of the property
value intValue of the property
Sets the named property to the given value.
public void SetValueByName(string name, float value)
name stringName of the property
value floatValue of the property
Sets the named property to the given value.
public void SetValueByName(string name, string value)
name stringName of the property
value stringValue of the property
Sets the named property to the given value.
[CLSCompliant(false)]
public void SetValueByName(string name, uint value)
name stringName of the property
value uintValue of the property
Sets the named property to the given value.
public void SetValueByName<T>(string name, T value) where T : ComObject
name stringName of the property
value TValue of the property
TSets the named property to the given value.
public void SetValueByName<T>(string name, PropertyType type, T value) where T : struct
name stringName of the property
type PropertyTypeProperty type.
value TValue of the property
TPerforms an explicit conversion from System.IntPtr to Properties.
public static explicit operator Properties(IntPtr nativePointer)
nativePointer System.IntPtr