IUIX_Button::TextColor Property

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_Button::TextColor Property}}
 
{{#customTitle:IUIX_Button::TextColor Property}}
Line 12: Line 13:
 
== Remarks ==
 
== Remarks ==
 
First high-order byte represents text opacity value, other bytes from higher to lower represent blue, green and red color components respectively. For instance,
 
First high-order byte represents text opacity value, other bytes from higher to lower represent blue, green and red color components respectively. For instance,
 +
 
<pre class="brush:cpp;gutter:false">btn->put_TextColor(0xFF00FF00);
 
<pre class="brush:cpp;gutter:false">btn->put_TextColor(0xFF00FF00);
 
</pre>
 
</pre>
will set button text color to green with 0% opacity value.
 
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IUIX_Button|IUIX_Button]].
+
[[PXV:IUIX_Button|IUIX_Button]].

Revision as of 06:59, 20 May 2015

Gets or sets the button text color in RGBA notation.

Syntax

HRESULT get_TextColor([out, retval]  LONG*  pColor);
HRESULT put_TextColor([in]  LONG  pColor);

Remarks

First high-order byte represents text opacity value, other bytes from higher to lower represent blue, green and red color components respectively. For instance,

btn->put_TextColor(0xFF00FF00);

See Also

IUIX_Button.