XlSourceRectangle Struct

Specifies the portion of the picture to display in a worksheet.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v21.2.Core.dll

Declaration

public struct XlSourceRectangle

The following members accept/return XlSourceRectangle objects:

Remarks

To crop a picture inserted into the document, assign the XlSourceRectangle class instance to the IXlPicture.SourceRectangle property. Each edge of the source rectangle is defined by a percentage offset from the corresponding edge of the picture’s bounding box. A positive percentage specifies an inset, while a negative percentage specifies an outset.

See Also