New to Telerik UI for WinFormsStart a free 30-day trial

Provides a base for the context of the worksheet UI update.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Worksheets.Layers

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public abstract class WorksheetUIUpdateContextBase : UIUpdateContext

Inheritance: objectUIUpdateContextWorksheetUIUpdateContextBase

Derived Classes: PrintWorksheetUIUpdateContextWorksheetUIUpdateContext

Inherited Members UIUpdateContext.Translate(Point, ViewportPaneType)UIUpdateContext.Translate(Rect, ViewportPaneType)UIUpdateContext.OwnerUIUpdateContext.SheetViewportUIUpdateContext.ScaleFactor

Properties

Gets the current theme.

C#
public DocumentTheme CurrentTheme { get; }
Property Value:

The current theme.

Gets the visible pictures.

C#
public IEnumerable<FloatingShapeBase> Shapes { get; }
Property Value:

The visible pictures.

Gets or sets a value indicating if the gridlines should be shown.

C#
public bool ShowGridlines { get; set; }
Property Value:

The value indicating if the gridlines should be shown.

VisibleCellLayoutBoxes

Dictionary<ViewportPaneType, CellLayoutBox[]>

Gets the layout boxes of the cells which are currently visible.

C#
public Dictionary<ViewportPaneType, CellLayoutBox[]> VisibleCellLayoutBoxes { get; }
Property Value:

The layout boxes of the cells which are currently visible.

Gets the visible column boxes.

C#
public IEnumerable<ColumnLayoutBox> VisibleColumnBoxes { get; }
Property Value:

The visible column boxes.

Gets the visible row boxes.

C#
public IEnumerable<RowLayoutBox> VisibleRowBoxes { get; }
Property Value:

The visible row boxes.

Gets the worksheet.

C#
public Worksheet Worksheet { get; }
Property Value:

The worksheet.

Methods

Adds the hyperlink area.

C#
public void AddHyperlinkArea(CellIndex cellIndex, Rect rect)
Parameters:cellIndexCellIndex

Index of the cell.

rectRect

The rectangle.

Calculates the indent.

C#
public int CalculateIndent(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

int

The indent.

Gets the actual bounding rectangle by content alignment.

C#
public Rect GetActualBoundingRectangleByContentAlignment(CellLayoutBox cellBox)
Parameters:cellBoxCellLayoutBox

The cell box.

Returns:

Rect

The actual bounding rectangle.

Gets the bottom border.

C#
public CellBorder GetBottomBorder(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

CellBorder

Returns the bottom border.

Gets the cell clipping.

C#
public Rect GetCellClipping(CellLayoutBox cellBox)
Parameters:cellBoxCellLayoutBox

The cell box.

Returns:

Rect

The cell clipping rectangle.

Gets the size of the cell content.

C#
public Size GetCellContentSize(CellLayoutBox cellBox)
Parameters:cellBoxCellLayoutBox

The cell box.

Returns:

Size

The size of the cell content.

Gets the cell format.

C#
public CellValueFormat GetCellFormat(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

CellValueFormat

The cell format.

Gets the cell value.

C#
public ICellValue GetCellValue(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

ICellValue

THe cell value.

Gets the data validation rule.

C#
public IDataValidationRule GetDataValidationRule(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

IDataValidationRule

The data validation rule

Gets the diagonal down border.

C#
public CellBorder GetDiagonalDownBorder(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

CellBorder

The diagonal down border.

Gets the diagonal up border.

C#
public CellBorder GetDiagonalUpBorder(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

CellBorder

The diagonal up border.

Gets the fill.

C#
public IFill GetFill(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

IFill

Returns the fill.

Gets the font properties.

C#
public FontProperties GetFontProperties(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

FontProperties

The font properties.

Gets the horizontal alignment.

C#
public RadHorizontalAlignment GetHorizontalAlignment(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

RadHorizontalAlignment

The horizontal alignment.

Gets the hyperlink area.

C#
public Rect GetHyperlinkArea(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

Rect

The rectangle of the hyperlink area.

Gets the hyperlink info.

C#
public HyperlinkInfo GetHyperlinkInfo(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

HyperlinkInfo

The hyperlink info.

Gets the hyperlink info.

C#
public HyperlinkInfo GetHyperlinkInfo(int rowIndex, int columnIndex)
Parameters:rowIndexint

Index of the row.

columnIndexint

Index of the column.

Returns:

HyperlinkInfo

Gets the indent property value.

C#
public int GetIndentPropertyValue(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

int

The indent.

Gets the is wrapped.

C#
public bool GetIsWrapped(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

bool

Returns the is wrapped.

Gets the left border.

C#
public CellBorder GetLeftBorder(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

CellBorder

Returns the left border.

Gets the previous and the next non empty and non merged cells.

C#
public void GetPreviousNextNonEmptyNonMergedCells(CellIndex cellIndex, out CellLayoutBox previousCellBox, out CellLayoutBox nextCellBox)
Parameters:cellIndexCellIndex

Index of the cell.

previousCellBoxCellLayoutBox

The previous cell box.

nextCellBoxCellLayoutBox

The next cell box.

Gets the right border.

C#
public CellBorder GetRightBorder(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

CellBorder

Returns the right border.

Gets the shape which contains a given point of the layout if there is such.

C#
public FloatingShapeBase GetShapeFromPoint(Point point)
Parameters:pointPoint

The point.

Returns:

FloatingShapeBase

Returns a shape if such is found, otherwise returns null.

Gets the top border.

C#
public CellBorder GetTopBorder(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

CellBorder

Returns the top border.

Gets the vertical alignment.

C#
public RadVerticalAlignment GetVerticalAlignment(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

RadVerticalAlignment

The vertical alignment.

Gets the visible cell box.

C#
public CellLayoutBox GetVisibleCellBox(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

CellLayoutBox

The visible cell box.

Gets the visible cell box.

C#
public CellLayoutBox GetVisibleCellBox(int rowIndex, int columnIndex)
Parameters:rowIndexint

Index of the row.

columnIndexint

Index of the column.

Returns:

CellLayoutBox

The visible cell box.

Gets the visible column layout box.

C#
public ColumnLayoutBox GetVisibleColumnLayoutBox(int columnIndex)
Parameters:columnIndexint

Index of the column.

Returns:

ColumnLayoutBox

The visible column layout box.

Gets the visible row layout box.

C#
public RowLayoutBox GetVisibleRowLayoutBox(int rowIndex)
Parameters:rowIndexint

Index of the row.

Returns:

RowLayoutBox

The visible row layout box.