Table of Contents

Method TryGetAttributeValueRef

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

TryGetAttributeValueRef(string, Type, out IObjectRef?)

Gets an attribute of this element as an object reference.

bool TryGetAttributeValueRef(string name, Type interfaceType, out IObjectRef? valueRef)

Parameters

name string
interfaceType Type
valueRef IObjectRef

Returns

bool

The value of the attribute.

Remarks

Returns false if the attribute is not specified.
Returns false if the attribute name is not valid on this element.
Returns false if the attribute cannot be expressed as the specified interface type.