IUIX_Inst::CreateColor Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IUIX_Inst::CreateColor Method}} | {{#customTitle:IUIX_Inst::CreateColor Method}} | ||
− | {{#parentPage:PXV:IUIX_Inst|method | + | {{#parentPage:PXV:IUIX_Inst#Methods|CreateColor|method}} |
− | + | ||
− | + | ||
− | + | ||
+ | Creates new object of [[PXV:IColor|IColor]] interface (''color''). | ||
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT CreateColor([in, defaultvalue(ColorType_RGB)] ColorType nColorType, [out, retval] IColor** | + | <pre class="brush:cpp;gutter:false">HRESULT CreateColor([in, defaultvalue(ColorType_RGB)] ColorType nColorType, |
+ | [out, retval] IColor** pColor);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;nColorType |
− | :[in, defaultvalue(ColorType_RGB)] | + | :[in, defaultvalue(ColorType_RGB)] Color type value from [[PXV:ColorType|ColorType]] enumeration. |
− | ; | + | ;pColor |
− | :[out, retval] | + | :[out, retval] return object of [[PXV:IColor|IColor]] interace. |
== Return Value == | == Return Value == | ||
− | Returns S_OK if operation was successful or error code | + | Returns S_OK if the operation was successful, or will return an error code if it fails. |
== See Also == | == See Also == | ||
− | + | [[PXV:IUIX_Inst|IUIX_Inst]] |
Latest revision as of 17:21, 15 June 2015
Creates new object of IColor interface (color).
Syntax
HRESULT CreateColor([in, defaultvalue(ColorType_RGB)] ColorType nColorType, [out, retval] IColor** pColor);
Parameters
- nColorType
- [in, defaultvalue(ColorType_RGB)] Color type value from ColorType enumeration.
- pColor
- [out, retval] return object of IColor interace.
Return Value
Returns S_OK if the operation was successful, or will return an error code if it fails.