[]
Represents the picture field included in the specified header or footer.
public interface IGraphic
Public Interface IGraphic
IGraphic graphic = worksheet.PageSetup.CenterHeaderPicture;
using (MemoryStream stream = CreateSampleImageStream())
{
graphic.SetGraphicStream(stream, ImageType.PNG);
}
graphic.LockAspectRatio = false;
graphic.Width = 120;
graphic.Height = 40;
| 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. |
| Name | Description |
|---|---|
| SetGraphicStream(Stream, ImageType) | Sets the picture data using the specified Stream. |