[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.PictureCollection

Class PictureCollection

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a collection of Picture objects.

public class PictureCollection : ContentObjectCollection<Picture>, IContentList<Picture>, IReadOnlyList<Picture>, IReadOnlyCollection<Picture>, IEnumerable<Picture>, IEnumerable
Inheritance
object
PictureCollection
Implements
System.Collections.Generic.IReadOnlyList<T><Picture>
System.Collections.Generic.IReadOnlyCollection<T><Picture>
System.Collections.Generic.IEnumerable<T><Picture>
System.Collections.IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Methods

Add()

Adds a Picture to this collection at the End location.

public Picture Add()

Returns

Picture

The added Picture.

Add(Image)

Adds a Picture to this collection at the End location.

public Picture Add(Image image)

Parameters

image GrapeCity.Documents.Drawing.Image

The GrapeCity.Documents.Drawing.Image object representing the picture.

Returns

Picture

The added Picture. The size of the picture is set to the size of the source image.

Remarks

Note than this overload inspects the image's Exif rotation data and applies an appropriate picture rotation.

Add(byte[], string, float, float)

Adds a Picture to this collection at the End location.

public Picture Add(byte[] imageBytes, string contentType, float width, float height)

Parameters

imageBytes byte[]

The image data representing the picture.

contentType string

The content type of the image data.

width float

The picture's width, in points.

height float

The picture's height, in points.

Returns

Picture

The added Picture.

Add(byte[], string)

Adds a Picture to this collection at the End location.

public Picture Add(byte[] imageBytes, string contentType)

Parameters

imageBytes byte[]

The image data representing the picture.

contentType string

The content type of the image data.

Returns

Picture

The added Picture.

Insert(Image, InsertLocation)

Inserts a Picture into this collection at a specified location.

public Picture Insert(Image image, InsertLocation location)

Parameters

image GrapeCity.Documents.Drawing.Image

The GrapeCity.Documents.Drawing.Image object representing the picture.

location InsertLocation

The target InsertLocation for the insertion.

Returns

Picture

The inserted Picture. The size of the picture is set to the size of the source image.

Remarks

Note than this overload inspects the image's Exif rotation data and applies an appropriate picture rotation.

Insert(InsertLocation)

Inserts a Picture into this collection at a specified location.

public Picture Insert(InsertLocation location)

Parameters

location InsertLocation

The target InsertLocation for the insertion.

Returns

Picture

The inserted Picture.

Insert(byte[], string, InsertLocation)

Inserts a Picture into this collection at a specified location.

public Picture Insert(byte[] imageBytes, string contentType, InsertLocation location)

Parameters

imageBytes byte[]

The image data representing the picture.

contentType string

The content type of the image data.

location InsertLocation

The target InsertLocation for the insertion.

Returns

Picture

The inserted Picture.

Insert(byte[], string, float, float, InsertLocation)

Inserts a Picture into this collection at a specified location.

public Picture Insert(byte[] imageBytes, string contentType, float width, float height, InsertLocation location)

Parameters

imageBytes byte[]

The image data representing the picture.

contentType string

The content type of the image data.

width float

The picture's width, in points.

height float

The picture's height, in points.

location InsertLocation

The target InsertLocation for the insertion.

Returns

Picture

The inserted Picture.