cp Element [Visio 2003 SDK Documentation]
Marks the beginning of a character properties run that is formatted according to the corresponding Char element. The run is defined to the end of the text or until the next <cp>
tag.
Syntax
<cp
IX
/>
Attributes
IX
Required int. The Char element index that this property run represents.
Element properties
Property | Value |
---|---|
Name | cp |
Minimum Occurrences | 0 |
Maximum Occurrences | Unbounded |
Element information
Parent elements
Child elements
None
Example
In the following example, the code excerpts result in the following text appearing in the shape:
This character run is formatted as 10 point bold text, whilethis character run is formatted as 12 point italic text.
<Shape ID="1" NameU="Rectangle" Type="Shape" Master="0">
<Char IX="0">
…
…
<Style>1</Style>
…
…
<Size Unit="PT">0.13888888888889</Size>
…
…
</Char>
<Char IX="1">
…
…
<Style>2</Style>
…
…
<Size Unit="PT">0.16666666666667</Size>
…
…
</Char>
…
…
<Text><cp IX="0"/><pp IX="0"/><tp IX="0"/>This character run is formatted as 10 point bold text, while<cp IX="1"/> this character run is formatted as 12 point italic text.</Text>
</Shape>