Provides a base for the context of the worksheet UI update.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Worksheets.Layers
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public abstract class WorksheetUIUpdateContextBase : UIUpdateContext
Inheritance: objectUIUpdateContextWorksheetUIUpdateContextBase
Derived Classes:
Inherited Members
Properties
CurrentTheme
DocumentTheme
Gets the current theme.
public DocumentTheme CurrentTheme { get; }
The current theme.
Shapes
IEnumerable<FloatingShapeBase>
Gets the visible pictures.
public IEnumerable<FloatingShapeBase> Shapes { get; }
The visible pictures.
Gets or sets a value indicating if the gridlines should be shown.
public bool ShowGridlines { get; set; }
The value indicating if the gridlines should be shown.
VisibleCellLayoutBoxes
Dictionary<ViewportPaneType, CellLayoutBox[]>
Gets the layout boxes of the cells which are currently visible.
public Dictionary<ViewportPaneType, CellLayoutBox[]> VisibleCellLayoutBoxes { get; }
The layout boxes of the cells which are currently visible.
VisibleColumnBoxes
IEnumerable<ColumnLayoutBox>
Gets the visible column boxes.
public IEnumerable<ColumnLayoutBox> VisibleColumnBoxes { get; }
The visible column boxes.
VisibleRowBoxes
IEnumerable<RowLayoutBox>
Gets the visible row boxes.
public IEnumerable<RowLayoutBox> VisibleRowBoxes { get; }
The visible row boxes.
Worksheet
Worksheet
Gets the worksheet.
public Worksheet Worksheet { get; }
The worksheet.
Methods
Adds the hyperlink area.
public void AddHyperlinkArea(CellIndex cellIndex, Rect rect)
Index of the cell.
rectRectThe rectangle.
Calculates the indent.
public int CalculateIndent(CellIndex cellIndex)
Index of the cell.
Returns:The indent.
Gets the actual bounding rectangle by content alignment.
public Rect GetActualBoundingRectangleByContentAlignment(CellLayoutBox cellBox)
The cell box.
Returns:Rect
The actual bounding rectangle.
GetBottomBorder(CellIndex)
CellBorder
Gets the bottom border.
public CellBorder GetBottomBorder(CellIndex cellIndex)
Index of the cell.
Returns:CellBorder
Returns the bottom border.
Gets the cell clipping.
public Rect GetCellClipping(CellLayoutBox cellBox)
The cell box.
Returns:Rect
The cell clipping rectangle.
Gets the size of the cell content.
public Size GetCellContentSize(CellLayoutBox cellBox)
The cell box.
Returns:Size
The size of the cell content.
GetCellFormat(CellIndex)
CellValueFormat
Gets the cell format.
public CellValueFormat GetCellFormat(CellIndex cellIndex)
Index of the cell.
Returns:CellValueFormat
The cell format.
GetCellValue(CellIndex)
ICellValue
Gets the cell value.
public ICellValue GetCellValue(CellIndex cellIndex)
Index of the cell.
Returns:ICellValue
THe cell value.
GetDataValidationRule(CellIndex)
IDataValidationRule
Gets the data validation rule.
public IDataValidationRule GetDataValidationRule(CellIndex cellIndex)
Index of the cell.
Returns:IDataValidationRule
The data validation rule.
Gets the data validation rule result.
public bool GetDataValidationRuleResult(CellIndex cellIndex)
Index of the cell.
Returns:The data validation rule result.
GetDiagonalDownBorder(CellIndex)
CellBorder
Gets the diagonal down border.
public CellBorder GetDiagonalDownBorder(CellIndex cellIndex)
Index of the cell.
Returns:CellBorder
The diagonal down border.
GetDiagonalUpBorder(CellIndex)
CellBorder
Gets the diagonal up border.
public CellBorder GetDiagonalUpBorder(CellIndex cellIndex)
Index of the cell.
Returns:CellBorder
The diagonal up border.
GetFill(CellIndex)
IFill
Gets the fill.
public IFill GetFill(CellIndex cellIndex)
Index of the cell.
Returns:IFill
Returns the fill.
GetFontProperties(CellIndex)
FontProperties
Gets the font properties.
public FontProperties GetFontProperties(CellIndex cellIndex)
Index of the cell.
Returns:FontProperties
The font properties.
GetHorizontalAlignment(CellIndex)
RadHorizontalAlignment
Gets the horizontal alignment.
public RadHorizontalAlignment GetHorizontalAlignment(CellIndex cellIndex)
Index of the cell.
Returns:RadHorizontalAlignment
The horizontal alignment.
Gets the hyperlink area.
public Rect GetHyperlinkArea(CellIndex cellIndex)
Index of the cell.
Returns:Rect
The rectangle of the hyperlink area.
GetHyperlinkInfo(CellIndex)
HyperlinkInfo
Gets the hyperlink info.
public HyperlinkInfo GetHyperlinkInfo(CellIndex cellIndex)
Index of the cell.
Returns:HyperlinkInfo
The hyperlink info.
GetHyperlinkInfo(int, int)
HyperlinkInfo
Gets the indent property value.
public int GetIndentPropertyValue(CellIndex cellIndex)
Index of the cell.
Returns:The indent.
Gets the is wrapped.
public bool GetIsWrapped(CellIndex cellIndex)
Index of the cell.
Returns:Returns the is wrapped.
GetLeftBorder(CellIndex)
CellBorder
Gets the left border.
public CellBorder GetLeftBorder(CellIndex cellIndex)
Index of the cell.
Returns:CellBorder
Returns the left border.
Gets the previous and the next non empty and non merged cells.
public void GetPreviousNextNonEmptyNonMergedCells(CellIndex cellIndex, out CellLayoutBox previousCellBox, out CellLayoutBox nextCellBox)
Index of the cell.
previousCellBoxCellLayoutBoxThe previous cell box.
nextCellBoxCellLayoutBoxThe next cell box.
GetRightBorder(CellIndex)
CellBorder
Gets the right border.
public CellBorder GetRightBorder(CellIndex cellIndex)
Index of the cell.
Returns:CellBorder
Returns the right border.
GetShapeFromPoint(Point)
FloatingShapeBase
Gets the shape which contains a given point of the layout if there is such.
public FloatingShapeBase GetShapeFromPoint(Point point)
The point.
Returns:FloatingShapeBase
Returns a shape if such is found, otherwise returns null.
GetTopBorder(CellIndex)
CellBorder
Gets the top border.
public CellBorder GetTopBorder(CellIndex cellIndex)
Index of the cell.
Returns:CellBorder
Returns the top border.
GetVerticalAlignment(CellIndex)
RadVerticalAlignment
Gets the vertical alignment.
public RadVerticalAlignment GetVerticalAlignment(CellIndex cellIndex)
Index of the cell.
Returns:RadVerticalAlignment
The vertical alignment.
GetVisibleCellBox(CellIndex)
CellLayoutBox
Gets the visible cell box.
public CellLayoutBox GetVisibleCellBox(CellIndex cellIndex)
Index of the cell.
Returns:CellLayoutBox
The visible cell box.
GetVisibleCellBox(int, int)
CellLayoutBox
GetVisibleColumnLayoutBox(int)
ColumnLayoutBox
Gets the visible column layout box.
public ColumnLayoutBox GetVisibleColumnLayoutBox(int columnIndex)
Index of the column.
Returns:ColumnLayoutBox
The visible column layout box.
GetVisibleRowLayoutBox(int)
RowLayoutBox
Gets the visible row layout box.
public RowLayoutBox GetVisibleRowLayoutBox(int rowIndex)
Index of the row.
Returns:RowLayoutBox
The visible row layout box.