Version

SetProperty Method

Sets an Element regular or custom property.
Syntax
'Declaration
 
Public Function SetProperty( _
   ByVal name As String, _
   ByVal value As Object _
) As Boolean
public bool SetProperty( 
   string name,
   object value
)

Parameters

name
value

Return Value

true if the property value was set
Remarks
There are two kinds of Element properties, a fixed set of regular properties with have a type a getter and a setter and arbitrary custom properties. If this method is used to access a regular property, the type is verified and the setter called. Null is a valid value for custom properties - RemoveCustomProperty() is the only way to remove a property from an Element.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also