Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

RtfParagraphFrame

Namespace OfficeIMO.Rtf
Assembly OfficeIMO.Rtf
Implements
IRtfCloneable
Modifiers sealed

Absolute positioning and frame metadata for an RTF paragraph.

Inheritance

  • Object
  • RtfParagraphFrame

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public RtfParagraphFrame() #

Methods

public RtfParagraphFrame SetAnchors(Nullable<RtfParagraphFrameHorizontalAnchor> horizontalAnchor = null, Nullable<RtfParagraphFrameVerticalAnchor> verticalAnchor = null) #
Returns: RtfParagraphFrame

Sets frame reference anchors.

Parameters

horizontalAnchor System.Nullable{OfficeIMO.Rtf.RtfParagraphFrameHorizontalAnchor} = null optionalposition: 0
verticalAnchor System.Nullable{OfficeIMO.Rtf.RtfParagraphFrameVerticalAnchor} = null optionalposition: 1
public RtfParagraphFrame SetDropCap(Nullable<Int32> lines, Nullable<RtfDropCapKind> kind) #
Returns: RtfParagraphFrame

Sets drop-cap metadata for this paragraph frame.

Parameters

lines System.Nullable{System.Int32} requiredposition: 0
kind System.Nullable{OfficeIMO.Rtf.RtfDropCapKind} requiredposition: 1
public RtfParagraphFrame SetPosition(Nullable<RtfParagraphFrameHorizontalPosition> horizontalPosition = null, Nullable<Int32> horizontalTwips = null, Nullable<RtfParagraphFrameVerticalPosition> verticalPosition = null, Nullable<Int32> verticalTwips = null) #
Returns: RtfParagraphFrame

Sets horizontal and vertical frame positioning.

Parameters

horizontalPosition System.Nullable{OfficeIMO.Rtf.RtfParagraphFrameHorizontalPosition} = null optionalposition: 0
horizontalTwips System.Nullable{System.Int32} = null optionalposition: 1
verticalPosition System.Nullable{OfficeIMO.Rtf.RtfParagraphFrameVerticalPosition} = null optionalposition: 2
verticalTwips System.Nullable{System.Int32} = null optionalposition: 3
public RtfParagraphFrame SetSize(Nullable<Int32> widthTwips = null, Nullable<Int32> heightTwips = null) #
Returns: RtfParagraphFrame

Sets frame dimensions in twips.

Parameters

widthTwips System.Nullable{System.Int32} = null optionalposition: 0
heightTwips System.Nullable{System.Int32} = null optionalposition: 1
public RtfParagraphFrame SetWrapping(Nullable<Boolean> noWrap = null, Nullable<Int32> allDirectionsTwips = null, Nullable<Int32> horizontalTwips = null, Nullable<Int32> verticalTwips = null, Nullable<Boolean> overlayText = null, Nullable<Boolean> noOverlap = null) #
Returns: RtfParagraphFrame

Sets frame wrapping and overlay behavior.

Parameters

noWrap System.Nullable{System.Boolean} = null optionalposition: 0
allDirectionsTwips System.Nullable{System.Int32} = null optionalposition: 1
horizontalTwips System.Nullable{System.Int32} = null optionalposition: 2
verticalTwips System.Nullable{System.Int32} = null optionalposition: 3
overlayText System.Nullable{System.Boolean} = null optionalposition: 4
noOverlap System.Nullable{System.Boolean} = null optionalposition: 5

Properties

public Nullable<Int32> WidthTwips { get; set; } #

Frame width in twips, represented by \absw.

public Nullable<Int32> HeightTwips { get; set; } #

Frame height in twips, represented by \absh. Negative values request exact height.

public Nullable<RtfParagraphFrameHorizontalAnchor> HorizontalAnchor { get; set; } #

Horizontal reference frame.

public Nullable<RtfParagraphFrameVerticalAnchor> VerticalAnchor { get; set; } #

Vertical reference frame.

public Nullable<RtfParagraphFrameHorizontalPosition> HorizontalPosition { get; set; } #

Horizontal positioning mode.

public Nullable<Int32> HorizontalPositionTwips { get; set; } #

Absolute horizontal offset in twips used by \posx or \posnegx.

public Nullable<RtfParagraphFrameVerticalPosition> VerticalPosition { get; set; } #

Vertical positioning mode.

public Nullable<Int32> VerticalPositionTwips { get; set; } #

Absolute vertical offset in twips used by \posy or \posnegy.

public Boolean AnchorLocked { get; set; } #

Whether the frame anchor is locked to its paragraph, represented by \abslock.

public Nullable<Boolean> NoOverlap { get; set; } #

Whether the frame avoids overlap, represented by \absnoovrlp.

public Boolean NoWrap { get; set; } #

Whether main text should not wrap around the frame, represented by \nowrap.

public Nullable<Int32> TextWrapDistanceTwips { get; set; } #

Distance in twips from surrounding text in all directions, represented by \dxfrtext.

public Nullable<Int32> TextWrapDistanceHorizontalTwips { get; set; } #

Horizontal distance in twips from surrounding text, represented by \dfrmtxtx.

public Nullable<Int32> TextWrapDistanceVerticalTwips { get; set; } #

Vertical distance in twips from surrounding text, represented by \dfrmtxty.

public Boolean OverlayText { get; set; } #

Whether main text flows underneath the frame, represented by \overlay.

public Nullable<Int32> DropCapLines { get; set; } #

Number of lines occupied by a drop cap, represented by \dropcapli.

public Nullable<RtfDropCapKind> DropCapKind { get; set; } #

Drop-cap placement, represented by \dropcapt.

public Boolean HasAnyValue { get; } #

Whether any frame metadata has been set.