TextField

Struct TextField 

Source
pub struct TextField {
    pub id: Guid,
    pub field_type: Option<String>,
    pub char_properties: Option<Box<TextCharacterProperties>>,
    pub paragraph_properties: Option<Box<TextParagraph>>,
    pub text: Option<String>,
}

Fields§

§id: Guid

Specifies the unique to this document, host specified token that is used to identify the field. This token is generated when the text field is created and persists in the file as the same token until the text field is removed. Any application should check the document for conflicting tokens before assigning a new token to a text field.

§field_type: Option<String>

Specifies the type of text that should be used to update this text field. This is used to inform the rendering application what text it should use to update this text field. There are no specific syntax restrictions placed on this attribute. The generating application can use it to represent any text that should be updated before rendering the presentation.

Reserved values:

ValueDescription
slidenumpresentation slide number
datetimedefault date time format for the rendering application
datetime1MM/DD/YYYY date time format
datetime2Day, Month DD, YYYY date time format
datetime3DD Month YYYY date time format
datetime4Month DD, YYYY date time format
datetime5DD-Mon-YY date time format
datetime6Month YY date time format
datetime7Mon-YY date time format
datetime8MM/DD/YYYY hh:mm AM/PM date time format
datetime9MM/DD/YYYY hh:mm:ss AM/PM date time format
datetime10hh:mm date time format
datetime11hh:mm:ss date time format
datetime12hh:mm AM/PM date time format
datetime13hh:mm:ss: AM/PM date time format
§char_properties: Option<Box<TextCharacterProperties>>

This element contains all run level text properties for the text runs within a containing paragraph.

§Xml example

<a:p>
  …
  <a:rPr u="sng"/>
  …
  <a:t>Some Text</a:t>
  …
</a:p>

The run of text described above is formatting with a single underline of text matching color.

§paragraph_properties: Option<Box<TextParagraph>>

Specifies the paragraph properties for this text field

§text: Option<String>

The text of this text field.

Implementations§

Source§

impl TextField

Source

pub fn from_xml_element(xml_node: &XmlNode) -> Result<Self, Box<dyn Error>>

Trait Implementations§

Source§

impl Clone for TextField

Source§

fn clone(&self) -> TextField

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TextField

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.