Excel.Interfaces.RangeFormatData interface
An interface describing the data returned by calling rangeFormat.toJSON()
.
Properties
borders | Collection of border objects that apply to the overall range. |
column |
Specifies the width of all columns within the range. If the column widths are not uniform, |
fill | Returns the fill object defined on the overall range. |
font | Returns the font object defined on the overall range. |
horizontal |
Represents the horizontal alignment for the specified object. See |
protection | Returns the format protection object for a range. |
row |
The height of all rows in the range. If the row heights are not uniform, |
vertical |
Represents the vertical alignment for the specified object. See |
wrap |
Specifies if Excel wraps the text in the object. A |
Property Details
borders
Collection of border objects that apply to the overall range.
borders?: Excel.Interfaces.RangeBorderData[];
Property Value
Remarks
columnWidth
Specifies the width of all columns within the range. If the column widths are not uniform, null
will be returned.
columnWidth?: number;
Property Value
number
Remarks
fill
Returns the fill object defined on the overall range.
fill?: Excel.Interfaces.RangeFillData;
Property Value
Remarks
font
Returns the font object defined on the overall range.
font?: Excel.Interfaces.RangeFontData;
Property Value
Remarks
horizontalAlignment
Represents the horizontal alignment for the specified object. See Excel.HorizontalAlignment
for details.
horizontalAlignment?: Excel.HorizontalAlignment | "General" | "Left" | "Center" | "Right" | "Fill" | "Justify" | "CenterAcrossSelection" | "Distributed";
Property Value
Excel.HorizontalAlignment | "General" | "Left" | "Center" | "Right" | "Fill" | "Justify" | "CenterAcrossSelection" | "Distributed"
Remarks
protection
Returns the format protection object for a range.
protection?: Excel.Interfaces.FormatProtectionData;
Property Value
Remarks
rowHeight
The height of all rows in the range. If the row heights are not uniform, null
will be returned.
rowHeight?: number;
Property Value
number
Remarks
verticalAlignment
Represents the vertical alignment for the specified object. See Excel.VerticalAlignment
for details.
verticalAlignment?: Excel.VerticalAlignment | "Top" | "Center" | "Bottom" | "Justify" | "Distributed";
Property Value
Excel.VerticalAlignment | "Top" | "Center" | "Bottom" | "Justify" | "Distributed"
Remarks
wrapText
Specifies if Excel wraps the text in the object. A null
value indicates that the entire range doesn't have a uniform wrap setting
wrapText?: boolean;
Property Value
boolean
Remarks
Office Add-ins