windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotcustomdrawfieldvalueeventargs-0030495e.md
Gets an object which provides the information required to paint a field value.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package : DevExpress.Win.PivotGrid
public PivotHeaderObjectInfoArgs Info { get; }
Public ReadOnly Property Info As PivotHeaderObjectInfoArgs
| Type | Description |
|---|---|
| DevExpress.XtraPivotGrid.ViewInfo.PivotHeaderObjectInfoArgs |
A DevExpress.XtraPivotGrid.ViewInfo.PivotHeaderObjectInfoArgs object which provides information about the painted field value.
|
Note
If you try to access the Info property while an asynchronous operation is being performed, an exception will be thrown. When the operation is in progress, use the PivotCustomDrawFieldValueThreadSafeEventArgs.Info property exposed by a thread-safe event parameter instead. To access the thread-safe event parameter, use the PivotCustomDrawFieldValueEventArgs.ThreadSafeArgs property. To determine whether an asynchronous operation is being performed, use the pivot grid’s IThreadSafeAccessible.IsAsyncInProgress property. For more information, see Asynchronous Mode.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Info 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.
else if (e.Area == PivotArea.RowArea) {
e.Painter.DrawObject(e.Info);
e.Painter.DrawIndicator(e.Info);
winforms-pivot-grid-draw-a-custom-element-on-mouse-hover/CS/WindowsApplication73/Form1.cs#L48
{
e.Painter.DrawObject(e.Info);
Size rectSize = new Size(12, 12);
ElseIf e.Area = PivotArea.RowArea Then
e.Painter.DrawObject(e.Info)
e.Painter.DrawIndicator(e.Info)
winforms-pivot-grid-draw-a-custom-element-on-mouse-hover/VB/WindowsApplication73/Form1.vb#L48
If mousePos <> Point.Empty AndAlso e.Bounds.Contains(mousePos) Then
e.Painter.DrawObject(e.Info)
Dim rectSize As Size = New Size(12, 12)
See Also
PivotCustomDrawFieldValueEventArgs Class