Word.Interfaces.FrameData interface
An interface describing the data returned by calling frame.toJSON()
.
Properties
borders | Returns a |
height | Specifies the height (in points) of the frame. |
height |
Specifies a |
horizontal |
Specifies the horizontal distance between the frame and the surrounding text, in points. |
horizontal |
Specifies the horizontal distance between the edge of the frame and the item specified by the |
lock |
Specifies if the frame is locked. |
range | Returns a |
relative |
Specifies the relative horizontal position of the frame. |
relative |
Specifies the relative vertical position of the frame. |
shading | Returns a |
text |
Specifies if document text wraps around the frame. |
vertical |
Specifies the vertical distance (in points) between the frame and the surrounding text. |
vertical |
Specifies the vertical distance between the edge of the frame and the item specified by the |
width | Specifies the width (in points) of the frame. |
width |
Specifies the rule used to determine the width of the frame. |
Property Details
borders
Returns a BorderUniversalCollection
object that represents all the borders for the frame.
borders?: Word.Interfaces.BorderUniversalData[];
Property Value
Remarks
height
Specifies the height (in points) of the frame.
height?: number;
Property Value
number
Remarks
heightRule
Specifies a FrameSizeRule
value that represents the rule for determining the height of the frame.
heightRule?: Word.FrameSizeRule | "Auto" | "AtLeast" | "Exact";
Property Value
Word.FrameSizeRule | "Auto" | "AtLeast" | "Exact"
Remarks
horizontalDistanceFromText
Specifies the horizontal distance between the frame and the surrounding text, in points.
horizontalDistanceFromText?: number;
Property Value
number
Remarks
horizontalPosition
Specifies the horizontal distance between the edge of the frame and the item specified by the relativeHorizontalPosition
property.
horizontalPosition?: number;
Property Value
number
Remarks
lockAnchor
Specifies if the frame is locked.
lockAnchor?: boolean;
Property Value
boolean
Remarks
range
Returns a Range
object that represents the portion of the document that's contained within the frame.
range?: Word.Interfaces.RangeData;
Property Value
Remarks
relativeHorizontalPosition
Specifies the relative horizontal position of the frame.
relativeHorizontalPosition?: Word.RelativeHorizontalPosition | "Margin" | "Page" | "Column" | "Character" | "LeftMargin" | "RightMargin" | "InsideMargin" | "OutsideMargin";
Property Value
Word.RelativeHorizontalPosition | "Margin" | "Page" | "Column" | "Character" | "LeftMargin" | "RightMargin" | "InsideMargin" | "OutsideMargin"
Remarks
relativeVerticalPosition
Specifies the relative vertical position of the frame.
relativeVerticalPosition?: Word.RelativeVerticalPosition | "Margin" | "Page" | "Paragraph" | "Line" | "TopMargin" | "BottomMargin" | "InsideMargin" | "OutsideMargin";
Property Value
Word.RelativeVerticalPosition | "Margin" | "Page" | "Paragraph" | "Line" | "TopMargin" | "BottomMargin" | "InsideMargin" | "OutsideMargin"
Remarks
shading
Returns a ShadingUniversal
object that refers to the shading formatting for the frame.
shading?: Word.Interfaces.ShadingUniversalData;
Property Value
Remarks
textWrap
Specifies if document text wraps around the frame.
textWrap?: boolean;
Property Value
boolean
Remarks
verticalDistanceFromText
Specifies the vertical distance (in points) between the frame and the surrounding text.
verticalDistanceFromText?: number;
Property Value
number
Remarks
verticalPosition
Specifies the vertical distance between the edge of the frame and the item specified by the relativeVerticalPosition
property.
verticalPosition?: number;
Property Value
number
Remarks
width
Specifies the width (in points) of the frame.
width?: number;
Property Value
number
Remarks
widthRule
Specifies the rule used to determine the width of the frame.
widthRule?: Word.FrameSizeRule | "Auto" | "AtLeast" | "Exact";
Property Value
Word.FrameSizeRule | "Auto" | "AtLeast" | "Exact"