OfficeIMO

API Reference

Class

WordWrapTextImage

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

Provides helper methods for configuring image wrap options on Wordprocessing elements.

Inheritance

  • Object
  • WordWrapTextImage

Methods

public static Anchor AppendWrapTextImage(Anchor anchor, WrapTextImage wrapImage) #
Returns: Anchor

Appends the appropriate wrapping element for the specified option to the given anchor.

Parameters

anchor DocumentFormat.OpenXml.Drawing.Wordprocessing.Anchor requiredposition: 0
The anchor to which the wrapping should be applied.
wrapImage OfficeIMO.Word.WrapTextImage requiredposition: 1
The desired wrapping option.

Returns

The modified anchor.

public static Nullable<WrapTextImage> GetWrapTextImage(Anchor anchor, Inline inline) #
Returns: Nullable<WrapTextImage>

Returns the currently applied wrapping option for the specified drawing.

Parameters

anchor DocumentFormat.OpenXml.Drawing.Wordprocessing.Anchor requiredposition: 0
Anchor element associated with the drawing.
inline DocumentFormat.OpenXml.Drawing.Wordprocessing.Inline requiredposition: 1
Inline element associated with the drawing.

Returns

The wrap option or null if none can be determined.

public static Void SetWrapTextImage(Drawing drawing, Anchor anchor, Inline inline, Nullable<WrapTextImage> wrapImage) #
Returns: Void

Sets the wrapping option for the provided drawing.

Parameters

drawing DocumentFormat.OpenXml.Wordprocessing.Drawing requiredposition: 0
The drawing element to update.
anchor DocumentFormat.OpenXml.Drawing.Wordprocessing.Anchor requiredposition: 1
Anchor element associated with the drawing.
inline DocumentFormat.OpenXml.Drawing.Wordprocessing.Inline requiredposition: 2
Inline element associated with the drawing.
wrapImage System.Nullable{OfficeIMO.Word.WrapTextImage} requiredposition: 3
The desired wrapping option.

Properties

public static WrapTopBottom WrapTopBottom { get; } #

Gets a WrapTopBottom instance used for top and bottom wrapping.

public static WrapThrough WrapThrough { get; } #

Gets a WrapThrough instance used for through wrapping.

public static WrapTight WrapTight { get; } #

Gets a WrapTight instance used for tight wrapping.