CellStyles
A collection of cell styles.
Go to Property Listing | Method Listing
Methods:
[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
LongInteger |
readonly |
The number of objects in the collection. Can return: Long Integer or NothingEnum enumerator. |
Method Listing
CellStyle [] (index:Number)
Returns the CellStyle with the specified index.
Parameter |
Type |
Description |
---|---|---|
index |
The index. |
CellStyle add (withProperties:Object)
Creates a new CellStyle.
Parameter |
Type |
Description |
---|---|---|
withProperties |
Initial values for properties of the new CellStyle (Optional) |
CellStyle anyItem ()
Returns any CellStyle in the collection.
Number count ()
Displays the number of elements in the CellStyle.
CellStyle everyItem ()
Returns every CellStyle in the collection.
CellStyle firstItem ()
Returns the first CellStyle in the collection.
CellStyle item (index:Varies LongInteger String)
Returns the CellStyle with the specified index or name.
Parameter |
Type |
Description |
---|---|---|
index |
LongInteger |
The index or name. Can accept: Long Integer or String. |
CellStyle itemByID (id:Number)
Returns the CellStyle with the specified ID.
Parameter |
Type |
Description |
---|---|---|
id |
The ID. |
CellStyle itemByName (name:String)
Returns the CellStyle with the specified name.
Parameter |
Type |
Description |
---|---|---|
name |
The name. |
CellStyle itemByRange (from:Varies CellStyle LongInteger String, to:Varies CellStyle LongInteger String)
Returns the CellStyles within the specified range.
Parameter |
Type |
Description |
---|---|---|
from |
LongInteger |
The CellStyle, index, or name at the beginning of the range. Can accept: CellStyle, Long Integer or String. |
to |
LongInteger |
The CellStyle, index, or name at the end of the range. Can accept: CellStyle, Long Integer or String. |
CellStyle lastItem ()
Returns the last CellStyle in the collection.
CellStyle middleItem ()
Returns the middle CellStyle in the collection.
CellStyle nextItem (obj:CellStyle)
Returns the CellStyle whose index follows the specified CellStyle in the collection.
Parameter |
Type |
Description |
---|---|---|
obj |
The CellStyle whose index comes before the desired CellStyle. |
CellStyle previousItem (obj:CellStyle)
Returns the CellStyle with the index previous to the specified index.
Parameter |
Type |
Description |
---|---|---|
obj |
The index of the CellStyle that follows the desired CellStyle. |
String toSource ()
Generates a string which, if executed, will return the CellStyle.
Object of
Application.cellStyles
Document.cellStyles
CellStyleGroup.cellStyles