Back to Devexpress

PivotCellEventArgs.Bounds Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotcelleventargs.md

latest2.6 KB
Original Source

PivotCellEventArgs.Bounds Property

Gets the cell’s bounds.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public Rectangle Bounds { get; }
vb
Public ReadOnly Property Bounds As Rectangle

Property Value

TypeDescription
Rectangle

A Rectangle value that specifies the cell’s bounds.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Bounds property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-highlight-pivot-cells-that-correspond-to-a-series-point-on-hover/CS/WindowsApplication53/Form1.cs#L51

csharp
if (cell != new Point(-1, -1))
        pivot.Invalidate(pivot.Cells.GetCellInfo(cell.X, cell.Y).Bounds);
}

winforms-highlight-pivot-cells-that-correspond-to-a-series-point-on-hover/VB/WindowsApplication53/Form1.vb#L55

vb
Private Sub InvalidateCell(ByVal pivot As PivotGridControl, ByVal cell As Point)
    If cell <> New Point(-1, -1) Then pivot.Invalidate(pivot.Cells.GetCellInfo(cell.X, cell.Y).Bounds)
End Sub

See Also

PivotCellEventArgs Class

PivotCellEventArgs Members

DevExpress.XtraPivotGrid Namespace