RtfParagraphFrame
OfficeIMO.Rtf
Absolute positioning and frame metadata for an RTF paragraph.
Inheritance
- object
- RtfParagraphFrame
Usage
Explore 9 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Property RtfParagraph.Frame
- Method RtfParagraphFrame.SetAnchors
- Method RtfParagraphFrame.SetDropCap
- Method RtfParagraphFrame.SetPosition
- Method RtfParagraphFrame.SetSize
- Method RtfParagraphFrame.SetWrapping
- Property RtfStyle.Frame
Accepted by parameters 2
- Method RtfParagraph.SetFrame
- Method RtfStyle.SetFrame
Constructors
public RtfParagraphFrame() #Methods
public RtfParagraphFrame SetAnchors(RtfParagraphFrameHorizontalAnchor? horizontalAnchor = null, RtfParagraphFrameVerticalAnchor? verticalAnchor = null) #Sets frame reference anchors.
Parameters
- horizontalAnchor OfficeIMO.Rtf.RtfParagraphFrameHorizontalAnchor? = null
- verticalAnchor OfficeIMO.Rtf.RtfParagraphFrameVerticalAnchor? = null
Returns
RtfParagraphFramepublic RtfParagraphFrame SetDropCap(int? lines, RtfDropCapKind? kind) #Sets drop-cap metadata for this paragraph frame.
Parameters
- lines int?
- kind OfficeIMO.Rtf.RtfDropCapKind?
Returns
RtfParagraphFramepublic RtfParagraphFrame SetPosition(RtfParagraphFrameHorizontalPosition? horizontalPosition = null, int? horizontalTwips = null, RtfParagraphFrameVerticalPosition? verticalPosition = null, int? verticalTwips = null) #Sets horizontal and vertical frame positioning.
Parameters
- horizontalPosition OfficeIMO.Rtf.RtfParagraphFrameHorizontalPosition? = null
- horizontalTwips int? = null
- verticalPosition OfficeIMO.Rtf.RtfParagraphFrameVerticalPosition? = null
- verticalTwips int? = null
Returns
RtfParagraphFramepublic RtfParagraphFrame SetSize(int? widthTwips = null, int? heightTwips = null) #Sets frame dimensions in twips.
Parameters
- widthTwips int? = null
- heightTwips int? = null
Returns
RtfParagraphFramepublic RtfParagraphFrame SetWrapping(bool? noWrap = null, int? allDirectionsTwips = null, int? horizontalTwips = null, int? verticalTwips = null, bool? overlayText = null, bool? noOverlap = null) #Sets frame wrapping and overlay behavior.
Parameters
- noWrap bool? = null
- allDirectionsTwips int? = null
- horizontalTwips int? = null
- verticalTwips int? = null
- overlayText bool? = null
- noOverlap bool? = null
Returns
RtfParagraphFrameInherited Methods
Properties
public int? WidthTwips { get; set; } #Frame width in twips, represented by \absw.
public int? HeightTwips { get; set; } #Frame height in twips, represented by \absh. Negative values request exact height.
public RtfParagraphFrameHorizontalAnchor? HorizontalAnchor { get; set; } #Horizontal reference frame.
public RtfParagraphFrameVerticalAnchor? VerticalAnchor { get; set; } #Vertical reference frame.
public RtfParagraphFrameHorizontalPosition? HorizontalPosition { get; set; } #Horizontal positioning mode.
public int? HorizontalPositionTwips { get; set; } #Absolute horizontal offset in twips used by \posx or \posnegx.
public RtfParagraphFrameVerticalPosition? VerticalPosition { get; set; } #Vertical positioning mode.
public int? VerticalPositionTwips { get; set; } #Absolute vertical offset in twips used by \posy or \posnegy.
public bool AnchorLocked { get; set; } #Whether the frame anchor is locked to its paragraph, represented by \abslock.
public bool? NoOverlap { get; set; } #Whether the frame avoids overlap, represented by \absnoovrlp.
public bool NoWrap { get; set; } #Whether main text should not wrap around the frame, represented by \nowrap.
public int? TextWrapDistanceTwips { get; set; } #Distance in twips from surrounding text in all directions, represented by \dxfrtext.
public int? TextWrapDistanceHorizontalTwips { get; set; } #Horizontal distance in twips from surrounding text, represented by \dfrmtxtx.
public int? TextWrapDistanceVerticalTwips { get; set; } #Vertical distance in twips from surrounding text, represented by \dfrmtxty.
public bool OverlayText { get; set; } #Whether main text flows underneath the frame, represented by \overlay.
public int? DropCapLines { get; set; } #Number of lines occupied by a drop cap, represented by \dropcapli.
public RtfDropCapKind? DropCapKind { get; set; } #Drop-cap placement, represented by \dropcapt.