Back to Devexpress

PivotCustomDrawFieldValueEventArgs.Info Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotcustomdrawfieldvalueeventargs-0030495e.md

latest4.5 KB
Original Source

PivotCustomDrawFieldValueEventArgs.Info Property

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

Declaration

csharp
public PivotHeaderObjectInfoArgs Info { get; }
vb
Public ReadOnly Property Info As PivotHeaderObjectInfoArgs

Property Value

TypeDescription
DevExpress.XtraPivotGrid.ViewInfo.PivotHeaderObjectInfoArgs

A DevExpress.XtraPivotGrid.ViewInfo.PivotHeaderObjectInfoArgs object which provides information about the painted field value.

|

Remarks

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.

winforms-pivot-change-the-field-value-header-appearance-backcolor/CS/WindowsApplication53/Form1.cs#L25

csharp
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

csharp
{
    e.Painter.DrawObject(e.Info);
    Size rectSize = new Size(12, 12);

winforms-pivot-change-the-field-value-header-appearance-backcolor/VB/WindowsApplication53/Form1.vb#L26

vb
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

vb
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

PivotCustomDrawFieldValueEventArgs Members

DevExpress.XtraPivotGrid Namespace