Version

CachePropertyValue(Int32,String,Object,Object,Object) Method

Caches the resolved value of the specified property.
Syntax
'Declaration
 
Public Overloads Function CachePropertyValue( _
   ByVal propertyIndex As Integer, _
   ByVal propertyName As String, _
   ByVal controlValue As Object, _
   ByVal defaultValue As Object, _
   ByVal resolveValue As Object _
) As Object
public object CachePropertyValue( 
   int propertyIndex,
   string propertyName,
   object controlValue,
   object defaultValue,
   object resolveValue
)

Parameters

propertyIndex
The index that uniquely identifies the property whose cached resolved value to get. The propertyIndex parameter must be less than the value set on the PropertiesCacheCount property of this component role.
propertyName
The custom property name.
controlValue
Control property's value.
defaultValue
Default value for the property.
resolveValue
If both the control and the style values are default then resolve the value to this value.

Return Value

Return the cached property value.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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