API Reference
Class
WordWrapTextImage
Provides helper methods for configuring image wrap options on Wordprocessing elements.
Inheritance
- Object
- WordWrapTextImage
Methods
public static Anchor AppendWrapTextImage(Anchor anchor, WrapTextImage wrapImage) #Returns:
AnchorAppends the appropriate wrapping element for the specified option to the given anchor.
Parameters
- anchor DocumentFormat.OpenXml.Drawing.Wordprocessing.Anchor
- The anchor to which the wrapping should be applied.
- wrapImage OfficeIMO.Word.WrapTextImage
- 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
- Anchor element associated with the drawing.
- inline DocumentFormat.OpenXml.Drawing.Wordprocessing.Inline
- 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:
VoidSets the wrapping option for the provided drawing.
Parameters
- drawing DocumentFormat.OpenXml.Wordprocessing.Drawing
- The drawing element to update.
- anchor DocumentFormat.OpenXml.Drawing.Wordprocessing.Anchor
- Anchor element associated with the drawing.
- inline DocumentFormat.OpenXml.Drawing.Wordprocessing.Inline
- Inline element associated with the drawing.
- wrapImage System.Nullable{OfficeIMO.Word.WrapTextImage}
- The desired wrapping option.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.