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
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.
Methods
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.