Skip to main content

DocApiFormatParagraph

Struct DocApiFormatParagraph 

Source
pub struct DocApiFormatParagraph<'a, I: Invoker> { /* private fields */ }

Implementations§

Source§

impl<'a, I: Invoker> DocApiFormatParagraph<'a, I>

Source

pub fn new(invoker: &'a I) -> Self

Source

pub fn clear_alignment<'call>( &'call self, params: &'call DocFormatParagraphClearAlignmentBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphClearAlignmentResult>> + Send + 'call

Remove direct paragraph alignment, reverting to style-defined or default alignment.

Source

pub async fn clear_alignment_with_options( &self, params: &DocFormatParagraphClearAlignmentBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphClearAlignmentResult>

Remove direct paragraph alignment, reverting to style-defined or default alignment.

Source

pub fn clear_all_tab_stops<'call>( &'call self, params: &'call DocFormatParagraphClearAllTabStopsBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphClearAllTabStopsResult>> + Send + 'call

Remove all tab stops from a paragraph.

Source

pub async fn clear_all_tab_stops_with_options( &self, params: &DocFormatParagraphClearAllTabStopsBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphClearAllTabStopsResult>

Remove all tab stops from a paragraph.

Source

pub fn clear_border<'call>( &'call self, params: &'call DocFormatParagraphClearBorderBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphClearBorderResult>> + Send + 'call

Remove border for a specific side or all sides of a paragraph.

Source

pub async fn clear_border_with_options( &self, params: &DocFormatParagraphClearBorderBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphClearBorderResult>

Remove border for a specific side or all sides of a paragraph.

Source

pub fn clear_direction<'call>( &'call self, params: &'call DocFormatParagraphClearDirectionBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphClearDirectionResult>> + Send + 'call

Remove explicit paragraph direction, reverting to inherited or default (LTR).

Source

pub async fn clear_direction_with_options( &self, params: &DocFormatParagraphClearDirectionBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphClearDirectionResult>

Remove explicit paragraph direction, reverting to inherited or default (LTR).

Source

pub fn clear_indentation<'call>( &'call self, params: &'call DocFormatParagraphClearIndentationBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphClearIndentationResult>> + Send + 'call

Remove all direct paragraph indentation.

Source

pub async fn clear_indentation_with_options( &self, params: &DocFormatParagraphClearIndentationBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphClearIndentationResult>

Remove all direct paragraph indentation.

Source

pub fn clear_shading<'call>( &'call self, params: &'call DocFormatParagraphClearShadingBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphClearShadingResult>> + Send + 'call

Remove all paragraph shading.

Source

pub async fn clear_shading_with_options( &self, params: &DocFormatParagraphClearShadingBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphClearShadingResult>

Remove all paragraph shading.

Source

pub fn clear_spacing<'call>( &'call self, params: &'call DocFormatParagraphClearSpacingBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphClearSpacingResult>> + Send + 'call

Remove all direct paragraph spacing.

Source

pub async fn clear_spacing_with_options( &self, params: &DocFormatParagraphClearSpacingBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphClearSpacingResult>

Remove all direct paragraph spacing.

Source

pub fn clear_tab_stop<'call>( &'call self, params: &'call DocFormatParagraphClearTabStopBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphClearTabStopResult>> + Send + 'call

Remove a tab stop at a given position.

Source

pub async fn clear_tab_stop_with_options( &self, params: &DocFormatParagraphClearTabStopBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphClearTabStopResult>

Remove a tab stop at a given position.

Source

pub fn reset_direct_formatting<'call>( &'call self, params: &'call DocFormatParagraphResetDirectFormattingBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphResetDirectFormattingResult>> + Send + 'call

Strip all direct paragraph formatting while preserving style reference, numbering, and section metadata.

Source

pub async fn reset_direct_formatting_with_options( &self, params: &DocFormatParagraphResetDirectFormattingBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphResetDirectFormattingResult>

Strip all direct paragraph formatting while preserving style reference, numbering, and section metadata.

Source

pub fn set_alignment<'call>( &'call self, params: &'call DocFormatParagraphSetAlignmentBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetAlignmentResult>> + Send + 'call

Set visual paragraph alignment on a paragraph-like block. For RTL paragraphs, left/right are translated to Word-compatible stored justification values.

Source

pub async fn set_alignment_with_options( &self, params: &DocFormatParagraphSetAlignmentBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetAlignmentResult>

Set visual paragraph alignment on a paragraph-like block. For RTL paragraphs, left/right are translated to Word-compatible stored justification values.

Source

pub fn set_border<'call>( &'call self, params: &'call DocFormatParagraphSetBorderBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetBorderResult>> + Send + 'call

Set border properties for a specific side of a paragraph.

Source

pub async fn set_border_with_options( &self, params: &DocFormatParagraphSetBorderBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetBorderResult>

Set border properties for a specific side of a paragraph.

Source

pub fn set_direction<'call>( &'call self, params: &'call DocFormatParagraphSetDirectionBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetDirectionResult>> + Send + 'call

Set paragraph base direction (LTR or RTL via w:bidi). Optionally align text to match.

Source

pub async fn set_direction_with_options( &self, params: &DocFormatParagraphSetDirectionBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetDirectionResult>

Set paragraph base direction (LTR or RTL via w:bidi). Optionally align text to match.

Source

pub fn set_flow_options<'call>( &'call self, params: &'call DocFormatParagraphSetFlowOptionsBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetFlowOptionsResult>> + Send + 'call

Set paragraph flow flags: contextual spacing, page-break-before, suppress-auto-hyphens, and the advanced layout toggles auto-space-DE, auto-space-DN, adjust-right-indent, and snap-to-grid.

Source

pub async fn set_flow_options_with_options( &self, params: &DocFormatParagraphSetFlowOptionsBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetFlowOptionsResult>

Set paragraph flow flags: contextual spacing, page-break-before, suppress-auto-hyphens, and the advanced layout toggles auto-space-DE, auto-space-DN, adjust-right-indent, and snap-to-grid.

Source

pub fn set_indentation<'call>( &'call self, params: &'call DocFormatParagraphSetIndentationBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetIndentationResult>> + Send + 'call

Set paragraph indentation properties (signed left/right, firstLine, hanging) in twips.

Source

pub async fn set_indentation_with_options( &self, params: &DocFormatParagraphSetIndentationBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetIndentationResult>

Set paragraph indentation properties (signed left/right, firstLine, hanging) in twips.

Source

pub fn set_keep_options<'call>( &'call self, params: &'call DocFormatParagraphSetKeepOptionsBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetKeepOptionsResult>> + Send + 'call

Set keep-with-next, keep-lines-together, and widow/orphan control flags.

Source

pub async fn set_keep_options_with_options( &self, params: &DocFormatParagraphSetKeepOptionsBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetKeepOptionsResult>

Set keep-with-next, keep-lines-together, and widow/orphan control flags.

Source

pub fn set_mark_run_props<'call>( &'call self, params: &'call DocFormatParagraphSetMarkRunPropsBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetMarkRunPropsResult>> + Send + 'call

Set the paragraph mark’s run properties (w:pPr/w:rPr), e.g. the font size or specVanish carried by the paragraph-end mark.

Source

pub async fn set_mark_run_props_with_options( &self, params: &DocFormatParagraphSetMarkRunPropsBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetMarkRunPropsResult>

Set the paragraph mark’s run properties (w:pPr/w:rPr), e.g. the font size or specVanish carried by the paragraph-end mark.

Source

pub fn set_numbering<'call>( &'call self, params: &'call DocFormatParagraphSetNumberingBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetNumberingResult>> + Send + 'call

Attach numbering (numId + level) to an existing paragraph or heading so it joins a numbered sequence. Numbering is a paragraph property; the node and its style are otherwise unchanged, though any direct paragraph indent is cleared so the numbering level controls indentation. Direct edits only; tracked mode is unsupported.

Source

pub async fn set_numbering_with_options( &self, params: &DocFormatParagraphSetNumberingBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetNumberingResult>

Attach numbering (numId + level) to an existing paragraph or heading so it joins a numbered sequence. Numbering is a paragraph property; the node and its style are otherwise unchanged, though any direct paragraph indent is cleared so the numbering level controls indentation. Direct edits only; tracked mode is unsupported.

Source

pub fn set_outline_level<'call>( &'call self, params: &'call DocFormatParagraphSetOutlineLevelBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetOutlineLevelResult>> + Send + 'call

Set the paragraph outline level (0–9) or null to clear.

Source

pub async fn set_outline_level_with_options( &self, params: &DocFormatParagraphSetOutlineLevelBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetOutlineLevelResult>

Set the paragraph outline level (0–9) or null to clear.

Source

pub fn set_shading<'call>( &'call self, params: &'call DocFormatParagraphSetShadingBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetShadingResult>> + Send + 'call

Set paragraph shading (background fill, pattern color, pattern type).

Source

pub async fn set_shading_with_options( &self, params: &DocFormatParagraphSetShadingBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetShadingResult>

Set paragraph shading (background fill, pattern color, pattern type).

Source

pub fn set_spacing<'call>( &'call self, params: &'call DocFormatParagraphSetSpacingBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetSpacingResult>> + Send + 'call

Set paragraph spacing properties (before, after, line, lineRule) in twips.

Source

pub async fn set_spacing_with_options( &self, params: &DocFormatParagraphSetSpacingBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetSpacingResult>

Set paragraph spacing properties (before, after, line, lineRule) in twips.

Source

pub fn set_tab_stop<'call>( &'call self, params: &'call DocFormatParagraphSetTabStopBoundParams, ) -> impl Future<Output = Result<DocFormatParagraphSetTabStopResult>> + Send + 'call

Add or replace a tab stop at a given position.

Source

pub async fn set_tab_stop_with_options( &self, params: &DocFormatParagraphSetTabStopBoundParams, options: InvokeOptions, ) -> Result<DocFormatParagraphSetTabStopResult>

Add or replace a tab stop at a given position.

Auto Trait Implementations§

§

impl<'a, I> Freeze for DocApiFormatParagraph<'a, I>
where &'a I: Freeze,

§

impl<'a, I> RefUnwindSafe for DocApiFormatParagraph<'a, I>

§

impl<'a, I> Send for DocApiFormatParagraph<'a, I>
where &'a I: Send,

§

impl<'a, I> Sync for DocApiFormatParagraph<'a, I>
where &'a I: Sync,

§

impl<'a, I> Unpin for DocApiFormatParagraph<'a, I>
where &'a I: Unpin,

§

impl<'a, I> UnsafeUnpin for DocApiFormatParagraph<'a, I>

§

impl<'a, I> UnwindSafe for DocApiFormatParagraph<'a, I>

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> 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.