cp Element

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

PropertyValue
Namecp 
Minimum Occurrences
Maximum OccurrencesUnbounded 

Element information

Parent elements

Text

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, while this 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>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp