[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IGraphic

IGraphic Interface

Represents the picture field included in the specified header or footer.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface IGraphic
Public Interface IGraphic
Examples
IGraphic graphic = worksheet.PageSetup.CenterHeaderPicture;
using (MemoryStream stream = CreateSampleImageStream())
{
    graphic.SetGraphicStream(stream, ImageType.PNG);
}
graphic.LockAspectRatio = false;
graphic.Width = 120;
graphic.Height = 40;

Properties

Name Description
Filename

Gets or sets the picture file path.

Use this property to get or change the file path associated with the picture field represented by this IGraphic.

Height

Gets or sets the height, in points, of the object.

Use this property to get or change the current height of the picture field represented by this IGraphic.

LockAspectRatio

Gets or sets whether the picture field retains its original proportions when you resize it.

Width

Gets or sets the width, in points, of the object.

Use this property to get or change the current width of the picture field represented by this IGraphic.

Methods

Name Description
SetGraphicStream(Stream, ImageType)

Sets the picture data using the specified Stream.