Javascript: SectionFormat.getLandscape Method
Description
Gets a value indicating whether the section's page size is in landscape orientation.
Syntax
<void> SectionFormat.getLandscape(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives a value indicating whether the section's page size is in landscape orientation. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates SectionFormat.getLandscape in a practical document-editing workflow. It gets a value indicating whether the section's page size is in landscape orientation.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectLandscape(sectionFormat) {
sectionFormat.getLandscape(
function(result) {
console.log("get landscape result:", result);
},
onTxError
);
}