Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.PivotGrid

#Declaration

public PivotGridFieldImageOptions ImageOptions { get; }

#Property Value

Type Description
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.

using DevExpress.Utils.Svg;
// ...
SvgImage svgIcon = SvgImage.FromFile(@"C:\Icons\Icon.svg");
fieldTrademark.ImageOptions.SvgImage = svgIcon;
See Also