setter_wrap()
Contents
[
Hide
]System::setter_wrap(void(*)(T2), T) function
Overload for static setter functions with type conversion.
template<typename T,typename T2> T System::setter_wrap(void(*pSetter)(T2), T value)
Template parameters
Parameter | Description |
---|---|
T | Value type. |
T2 | Type expected by setter function. |
Arguments
Parameter | Type | Description |
---|---|---|
pSetter | void(*)(T2) | Static setter function reference. |
value | T | Value to set. |
Return Value
set value.
System::setter_wrap(Host const, void(HostSet::)(T2), T) function
Overload for instance setter functions with type conversion.
template<typename T,typename T2,typename Host,typename HostSet> std::enable_if<std::is_base_of<HostSet, Host>::value, T>::type System::setter_wrap(Host *const host, void(HostSet::*pSetter)(T2), T value)
Template parameters
Parameter | Description |
---|---|
T | Value type. |
T2 | Type expected by setter function. |
Host | Instance type. |
HostSet | - Host itself, or it’s base type, where property’s setter is defined. |
Arguments
Parameter | Type | Description |
---|---|---|
host | Host *const | Object to call setter function for. |
pSetter | void(HostSet::*)(T2) | Setter function reference. |
value | T | Value to set. |
Return Value
set value.
See Also
- Namespace System
- Library Aspose.Slides