PageMediaColor
This topic is not current. For the most current information, see the Print Schema Specification.
Describes the Media Color options and the characteristics of each option.
Element Information
Name | Value |
---|---|
Element Type |
Feature |
Scoping Prefix |
Page |
Notes |
None |
Structural Content
The XML structure of this element is:
<psf:Feature name="psk:PageMediaColor">
<psf:Property name="psf:SelectionType">
<psf:Value xsi:type="xs:string">psk:PickOne</psf:Value>
</psf:Property>
<psf:Option name="psk:_OptionName_">
<psf:Property name="psf:IdentityOption">
<psf:Value xsi:type="xs:string">_IdentityOptionValue_</psf:Value>
</psf:Property>
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">_MediaColorsRGBValue_</psf:Value>
</psf:ScoredProperty>
</psf:Option>
</psf:Feature>
Structure Variables
The following table outlines the characteristics of the variables defined in the XML structure.
Name | Data type | Unit | Supported values | Summary |
---|---|---|---|---|
_OptionName_ |
string |
characters |
Valid fully qualified name as defined by Namespaces in XML. If no namespace is specified, default namespace is assumed. |
The name of the option. |
_IdentityOptionValue_ |
string |
n/a |
True, False. |
Defines an Option which when selected would disable this feature. |
_MediaColorsRGBValue_ |
string |
sRGB Color |
#AARRGGBB where A, R, G, B represent hexadecimal digits. |
Defines the sRGB color for the physical media sheet. |
Extensible Markup Language (XML) Content
The public Print Schema keywords are defined in the https://schemas.microsoft.com/windows/2003/08/printing/printschemakeywords
namespace. The public Extensible Markup Language (XML) content for this keyword is defined below:
<psf:Feature name="psk:PageMediaColor">
<psf:Property name="psf:SelectionType">
<psf:Value xsi:type="xs:string">psk:PickOne</psf:Value>
</psf:Property>
<psf:Option name="psk:Black">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FF000000</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Blue">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FF0000FF</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Brown">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFA52A2A</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Gold">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFFFD700</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:GoldenRod">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFDAA520</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Gray">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FF808080</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Green">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FF008000</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Ivory">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFFFFFF0</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:NoColor">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">_Undefined_</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Orange">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFFFA500</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Pink">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFFFC0CB</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Red">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFFF0000</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Silver">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFC0C0C0</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Turquoise">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FF40E0D0</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Violet">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFEE82EE</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:White">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFFFFFFF</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<psf:Option name="psk:Yellow">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">#FFFFFF00</psf:Value>
</psf:ScoredProperty>
</psf:Option>
<!-- Specifies a custom page color. -->
<psf:Option name="psk:Custom">
<psf:ScoredProperty name="psk:MediaColorsRGB">
<psf:Value xsi:type="xs:string">_Undefined_</psf:Value>
</psf:ScoredProperty>
</psf:Option>
</psf:Feature>