Class PrintArea
Represents a print area.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model.Printing
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class PrintArea : CellRangeInsertedOrRemovedAwareOrderedCollection
Properties
HasPrintAreaRanges
Gets the value indicating whether there are print ranges.
Declaration
public bool HasPrintAreaRanges { get; }
Property Value
System.Boolean
The value indicating whether there are print ranges. |
Ranges
Gets the ranges to print.
Declaration
public IEnumerable<CellRange> Ranges { get; }
Property Value
System.Collections.Generic.IEnumerable<CellRange>
The ranges to print. |
Methods
CanAddToPrintArea(IEnumerable<CellRange>)
Determines whether the specified ranges can be added.
Declaration
public bool CanAddToPrintArea(IEnumerable<CellRange> ranges)
Parameters
System.Collections.Generic.IEnumerable<CellRange>
ranges
The ranges. |
Returns
System.Boolean
The value indicating wheter the specified ranges can be added. |
CanAddToPrintArea(CellRange)
Determines whether the specified range can be added.
Declaration
public bool CanAddToPrintArea(CellRange range)
Parameters
CellRange
range
The range. |
Returns
System.Boolean
The value indicating wheter the specified range can be added. |
Clear()
Clears this instance.
Declaration
public void Clear()
Insert(Int32, CellRange)
Inserts the specified index.
Declaration
protected override void Insert(int index, CellRange range)
Parameters
System.Int32
index
The index. |
CellRange
range
The range. |
Overrides
OnAfterTranslation(Dictionary<CellRange, CellRange>, CellRange, ShiftType)
Called after translation.
Declaration
protected override void OnAfterTranslation(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions, CellRange rangeToInsertOrRemove, ShiftType shiftType)
Parameters
System.Collections.Generic.Dictionary<CellRange, CellRange>
oldAndNewTranslatedRangesPositions
The old and new translated ranges positions. |
CellRange
rangeToInsertOrRemove
The range to insert or remove. |
ShiftType
shiftType
Type of the shift. |
Overrides
OnBeforeTranslation(Dictionary<CellRange, CellRange>, CellRange, ShiftType)
Called before translation.
Declaration
protected override void OnBeforeTranslation(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions, CellRange rangeToInsertOrRemove, ShiftType shiftType)
Parameters
System.Collections.Generic.Dictionary<CellRange, CellRange>
oldAndNewTranslatedRangesPositions
The old and new translated ranges positions. |
CellRange
rangeToInsertOrRemove
The range to insert or remove. |
ShiftType
shiftType
Type of the shift. |
Overrides
RemoveCellRangeAt(Int32)
Removes the cell range at.
Declaration
protected override void RemoveCellRangeAt(int index)
Parameters
System.Int32
index
The index. |
Overrides
SetPrintArea(IEnumerable<CellRange>)
Sets the print area.
Declaration
public void SetPrintArea(IEnumerable<CellRange> ranges)
Parameters
System.Collections.Generic.IEnumerable<CellRange>
ranges
The ranges. |
SetPrintArea(CellRange)
Sets the print area.
Declaration
public void SetPrintArea(CellRange range)
Parameters
CellRange
range
The range. |
TryAddToPrintArea(IEnumerable<CellRange>)
Tries to add to print area.
Declaration
public bool TryAddToPrintArea(IEnumerable<CellRange> ranges)
Parameters
System.Collections.Generic.IEnumerable<CellRange>
ranges
The ranges. |
Returns
System.Boolean
|
TryAddToPrintArea(CellRange)
Tries to add to print area.
Declaration
public bool TryAddToPrintArea(CellRange range)
Parameters
CellRange
range
The range. |
Returns
System.Boolean
|