[][src]Enum msoffice_shared::drawingml::TextBulletSize

pub enum TextBulletSize {
    FollowText,
    Percent(TextBulletSizePercent),
    Point(TextFontSize),
}

Variants

FollowText

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

Xml example

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

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

Percent(TextBulletSizePercent)

This element specifies the size in percentage of the surrounding text to be used on bullet characters within a given paragraph.

Xml example

<p:txBody>
  …
  <a:p>
    <a:pPr …>
      <a:buSzPct val="111%"/>
    </a:pPr>
    …
    <a:t>Bullet 1</a:t>
    …
  </a:p>
  …
</p:txBody>

The size of the above bullet follows the text size in that it is always rendered at 111% the size of the text within the given text run. This is specified by val="111%", with a restriction on the values not being less than 25% or more than 400%. This percentage size should only apply to the actual bullet character and not to the text within the bullet.

Point(TextFontSize)

This element specifies the size in points to be used on bullet characters within a given paragraph. The size is specified using the points where 100 is equal to 1 point font and 1200 is equal to 12 point font.

Xml example

<p:txBody>
  …
  <a:p>
    <a:pPr …>
      <a:buSzPts val="1400"/>
    </a:pPr>
    …
    <a:t>Bullet 1</a:t>
    …
  </a:p>
  …
</p:txBody>

The size of the above bullet does not follow the text size of the text within the given text run. The bullets size is specified by val="1400", which corresponds to a point size of 14. This bullet size should only apply to the actual bullet character and not to the text within the bullet.

Methods

impl TextBulletSize[src]

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

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

Trait Implementations

impl Clone for TextBulletSize[src]

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

Performs copy-assignment from source. Read more

impl Debug for TextBulletSize[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]