Stylesheets.getStyleSheets (Method)

Returns zero or more structures, each containing information about the style sheets within a set; for example, 'FileName', 'PageID', 'Position', and so on.

Returns:

StyleSheets_GetStyleSheets_Result (query)

Each row of the returned query results has the following fields:

Field Name Type Description
FileName Filename The style sheet's filename.
isExplicitFile Boolean Boolean flag which when true indicates that the style sheet file is explicitly defined.
Position Integer The style sheet's position in the style sheet set.
Source InheritanceSource Indicates if this style sheet comes from the page or is inherited from an ancestor template ('page' or 'template').
SourcePageTitle PlainText_NonNull_255 The title of the page within which the style sheet is defined.
StyleSheetID StyleSheetID The style sheet's ID.
StyleSheetURL ValidURL The style sheet's URL.

Arguments:

Name Type Required Description
pageID RealPageID Required A page's ID.
styleSheetSetID StyleSheetSetID Required The ID of the style sheet set to which the style sheet belongs.
styleSheetID StyleSheetID_0 Optional. Defaults to '0'. An ID of a style sheet within a style sheet set. If this value is 0, CommonSpot returns all style sheets associated with a style sheet set.

Context:

License Requirements None
Permission Requirements ContributorOrServerCode
Deny Context None
Require Context None
Author Lock  

Error Codes:

Code Error Message
52005 The page ID and style sheet set ID do not correspond with each other.
52006 The style sheet set ID and style sheet ID do not correspond with each other.

Notes:

None