[]
Represents a collection of Picture objects.
public class PictureCollection : ContentObjectCollection<Picture>, IContentList<Picture>, IReadOnlyList<Picture>, IReadOnlyCollection<Picture>, IEnumerable<Picture>, IEnumerable
public Picture Add()
public Picture Add(Image image)
image
GrapeCity.Documents.Drawing.ImageThe GrapeCity.Documents.Drawing.Image object representing the picture.
Note than this overload inspects the image's Exif rotation data and applies an appropriate picture rotation.
public Picture Add(byte[] imageBytes, string contentType, float width, float height)
imageBytes
byte[]The image data representing the picture.
contentType
stringThe content type of the image data.
width
floatThe picture's width, in points.
height
floatThe picture's height, in points.
public Picture Add(byte[] imageBytes, string contentType)
imageBytes
byte[]The image data representing the picture.
contentType
stringThe content type of the image data.
Inserts a Picture into this collection at a specified location.
public Picture Insert(Image image, InsertLocation location)
image
GrapeCity.Documents.Drawing.ImageThe GrapeCity.Documents.Drawing.Image object representing the picture.
location
InsertLocationThe target InsertLocation for the insertion.
Note than this overload inspects the image's Exif rotation data and applies an appropriate picture rotation.
Inserts a Picture into this collection at a specified location.
public Picture Insert(InsertLocation location)
location
InsertLocationThe target InsertLocation for the insertion.
Inserts a Picture into this collection at a specified location.
public Picture Insert(byte[] imageBytes, string contentType, InsertLocation location)
imageBytes
byte[]The image data representing the picture.
contentType
stringThe content type of the image data.
location
InsertLocationThe target InsertLocation for the insertion.
Inserts a Picture into this collection at a specified location.
public Picture Insert(byte[] imageBytes, string contentType, float width, float height, InsertLocation location)
imageBytes
byte[]The image data representing the picture.
contentType
stringThe content type of the image data.
width
floatThe picture's width, in points.
height
floatThe picture's height, in points.
location
InsertLocationThe target InsertLocation for the insertion.