AIArtboardRangeSuite Struct Reference
[API Suite List]
This suite allows you to validate a string containing a range of artboard indices and sequentially iterate over the range.
More...
#include <AIArtboardRange.h>
List of all members.
Detailed Description
This suite allows you to validate a string containing a range of artboard indices and sequentially iterate over the range.
A range of artboards is typically provided by the user in the Print, Save and Export dialogs.
Member Data Documentation
Sets the iterator to the last element in an artboard range.
- Parameters:
-
| rangeItr | The artboard range iterator. |
Creates a bi-directional iterator for an artboard range.
- Parameters:
-
| range | An artboard range reference. |
| rangeItr | [out] A buffer in which to return the iterator, which initially points to the first element of the artboard range. |
- See also:
DisposeIterator()
Creates an artboard range reference.
- Parameters:
-
| allArtboards | True to include all defined artboards in the range. False to use a range string. |
| rangeStr | A valid artboard range string. Ignored if allArtboards is true. |
| range | [out] A buffer in which to return the new artboard range reference. |
- See also:
ValidateString()
Disposes of an artboard range handle created by Create()
.
- Parameters:
-
| range | An artboard range reference. |
Disposes of an artboard range iterator created by Begin()
.
- Parameters:
-
| rangeItr | An artboard range iterator. |
Retrieves the number of artboards in an artboard range.
- Parameters:
-
| range | An artboard range reference. |
| count | [out] A buffer in which to return the number of artboards. |
Reports whether an artboard range includes all defined artboards.
- Parameters:
-
| range | An artboard range reference. |
| result | [out] A buffer in which to return the output as true if the range includes all artboards, false otherwise. |
- Returns:
- The error
kBadParameterErr
if any parameter is NULL.
Retrieves the next element in an artboard range and increments the iterator.
- Parameters:
-
| rangeItr | The artboard range iterator. |
| artboardNumber | [out] A buffer in which to return the 0-based index of the next artboard. |
- Returns:
- The error
kEndOfRangeErr
if the iterator has reached the end of the range.
Retrieves the previous element in an artboard range and decrements the iterator.
- Parameters:
-
| rangeItr | The artboard range iterator. |
| artboardNumber | [out] A buffer in which to return the 0-based index of the previous artboard. |
- Returns:
- The error
kEndOfRangeErr
if the iterator has reached the beginning of the range.
Removes duplicate crop areas from an artboard range.
This call re-sorts the range and invalidates all iterators for this range.
- Parameters:
-
| range | An artboard range reference. |
- Returns:
- The error
kBadParameterErr
if any parameter is NULL.
Validates an artboard range string.
A valid range string contains a comma-separated list of artboard index numbers and index ranges (n-m). The index is 0-based. A valid string could be, for example, "1,2,3-5,8".
- Parameters:
-
| rangeStr | The string containing the artboard range. |
- Returns:
- The error
kBadParameterErr
if the range string is invalid.
The documentation for this struct was generated from the following file: