Back to Devexpress

XlSourceRectangle Struct

corelibraries-devexpress-dot-export-dot-xl-7aa42b26.md

latest1.4 KB
Original Source

XlSourceRectangle Struct

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

Namespace : DevExpress.Export.Xl

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public struct XlSourceRectangle
vb
Public Structure XlSourceRectangle

The following members 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

XlSourceRectangle Members

DevExpress.Export.Xl Namespace