ShapePictureFill.SourceRect Property
Gets the part of the picture used for the fill.
Namespace: DevExpress.Spreadsheet.Drawings
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
ShapeRectangleOffset SourceRect { get; }
#Property Value
Type | Description |
---|---|
Shape |
An object that specifies the source rectangle offsets from the corresponding edges of the bounding box. |
#Remarks
If the SourceRect property is a positive value, the source image is cropped and stretched to fill the available area. For instance, the left offset of 35% specifies that the leftmost 35% of the picture is cropped and the remaining part of the picture is used to fill the shape, as shown in the table below (the chart is displayed in Microsoft® Excel®).
If the SourceRect property is a negative value, an empty space appears along the corresponding edges of the picture. For instance, the left and right offsets of -10% specifies that two blank bands of equal width (10% of the bounding box’s width) are shown along the left and right edges of the picture.
Source | Source | Source Source |
---|---|---|
Use the ShapeComplexFill.FillRect property to specify where the picture fill should start.
Note
The Source
property has no effect on the visual appearance of a chart when the document is loaded in the Spreadsheet