LegendItem.Crop Property
Gets or set a flag whether the image should be cropped.
Syntax
public System.Boolean Crop { get; set; }Property Value
Default: Differs depending on type. See the table below.
True if the image should be cropped by the rectangle specified by Width and Height.
Default values
| Class | Default value |
|---|---|
| ColorRampLegendItem | Not used. |
| CustomLegendItem | true |
| ImageLegendItem | true |
| LineLegendItem | true |
| PointLegendItem | true |
| PolygonLegendItem | true |
| RasterLegendItem | true |
Remarks
Cropping is useful to remove unwanted parts from the generated image.
Platforms
Windows, Linux, Android