PrintArea
Manages the collection of cell ranges to be printed, allowing multiple non-contiguous areas to be specified for printing.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Printing
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class PrintArea : CellRangeInsertedOrRemovedAwareOrderedCollection
Inheritance: objectCellRangeInsertedOrRemovedAwareCollectionBaseCellRangeInsertedOrRemovedAwareOrderedCollectionPrintArea
Inherited Members
Methods
Determines whether the specified ranges can be added without intersecting with existing print ranges.
public bool CanAddToPrintArea(IEnumerable<CellRange> ranges)
The ranges.
Returns:The value indicating wheter the specified ranges can be added.
Removes all print area ranges, reverting to printing the entire used worksheet area.
public void Clear()
Called after translation.
protected override void OnAfterTranslation(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions, CellRange rangeToInsertOrRemove, ShiftType shiftType)
The old and new translated ranges positions.
rangeToInsertOrRemoveCellRangeThe range to insert or remove.
shiftTypeShiftTypeType of the shift.
Overrides:
Called before translation.
protected override void OnBeforeTranslation(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions, CellRange rangeToInsertOrRemove, ShiftType shiftType)
The old and new translated ranges positions.
rangeToInsertOrRemoveCellRangeThe range to insert or remove.
shiftTypeShiftTypeType of the shift.
Overrides:
Removes the cell range at.
Replaces all existing print ranges with a single specified range.
Replaces all existing print ranges with the specified collection of ranges.
public void SetPrintArea(IEnumerable<CellRange> ranges)
The ranges.
Attempts to add multiple ranges to the print area if they do not intersect with existing ranges, and returns whether the operation succeeded.
public bool TryAddToPrintArea(IEnumerable<CellRange> ranges)
The ranges.
Returns:Properties
Gets whether any print area ranges have been defined, indicating that only specific areas will be printed.
public bool HasPrintAreaRanges { get; }
The value indicating whether there are print ranges.
Gets the cell ranges currently configured for printing.
public IEnumerable<CellRange> Ranges { get; }
The ranges to print.