Back to Devexpress

PivotGridField.ImageOptions Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridfield-5846a819.md

latest2.3 KB
Original Source

PivotGridField.ImageOptions Property

Provides access to settings that allow you to set up raster and vector icons for this PivotGridField.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public PivotGridFieldImageOptions ImageOptions { get; }
vb
Public ReadOnly Property ImageOptions As PivotGridFieldImageOptions

Property Value

TypeDescription
PivotGridFieldImageOptions

A PivotGridFieldImageOptions object containing settings that allow you to set up raster and vector icons for this PivotGridField.

|

Remarks

To learn how to use SVG icons, see How To: Draw and Use SVG Images.

Example

The code snippet below shows how to display an SVG icon within the Trademark field (‘fieldTrademark’) using the PivotGridField.ImageOptions .SvgImage property.

csharp
using DevExpress.Utils.Svg;
// ...
SvgImage svgIcon = SvgImage.FromFile(@"C:\Icons\Icon.svg");
fieldTrademark.ImageOptions.SvgImage = svgIcon;
vb
Imports DevExpress.Utils.Svg
' ...
Private svgIcon As SvgImage = SvgImage.FromFile("C:\Icons\Icon.svg")
fieldTrademark.ImageOptions.SvgImage = svgIcon

See Also

PivotGridField Class

PivotGridField Members

DevExpress.XtraPivotGrid Namespace