[][src]Enum msoffice_shared::drawingml::TextBulletColor

pub enum TextBulletColor {
    FollowText,
    Color(Color),
}

Variants

FollowText

This element specifies that the color of the bullets for a paragraph should be of the same color as the text run within which each bullet is contained.

Xml example

<p:txBody>
  …
  <a:p>
    <a:pPr …>
    <a:buClrTx>
    </a:pPr>
    …
    <a:t>Bullet 1</a:t>
    …
  </a:p>
  …
</p:txBody>

The color of the above bullet follows the default text color of the text for the run of text shown above since no specific text color was specified.

Color(Color)

This element specifies the color to be used on bullet characters within a given paragraph. The color is specified using the numerical RGB color format.

Xml example

<p:txBody>
  …
  <a:p>
    <a:pPr …>
      <a:buClr>
        <a:srgbClr val="FFFF00"/>
      </a:buClr>
    </a:pPr>
    …
    <a:t>Bullet 1</a:t>
    …
  </a:p>
  …
</p:txBody>

The color of the above bullet does not follow the text color but instead has a yellow color specified by val="FFFF00". This color should only apply to the actual bullet character and not to the text within the bullet.

Methods

impl TextBulletColor[src]

pub fn is_choice_member(name: &str) -> bool[src]

pub fn from_xml_element(
    xml_node: &XmlNode
) -> Result<TextBulletColor, Box<dyn Error>>
[src]

Trait Implementations

impl Clone for TextBulletColor[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for TextBulletColor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]