[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.ImageAlign

ImageAlign Class

Represents the alignment of an image within its container.

Inheritance
ImageAlign
Namespace: GrapeCity.Documents.Drawing
Assembly: DS.Documents.Imaging.dll
Syntax
public class ImageAlign
Public Class ImageAlign

Constructors

Name Description
ImageAlign()

Initializes a new instance of the ImageAlign class.

ImageAlign(ImageAlignHorz, ImageAlignVert, bool, bool, bool, bool, bool)

Initializes a new instance of the ImageAlign class.

Fields

Name Description
CenterImage

Gets the image alignment that centers an image.

Default

Gets the default image alignment.

ScaleImage

Gets the image alignment that scales an image.

StretchImage

Gets the image alignment that stretches an image.

Properties

Name Description
AlignHorz

Gets or sets the horizontal alignment of an image within a container.

AlignVert

Gets or sets the vertical alignment of an image within a container.

BestFit

Gets or sets a value indicating whether an image should be resized to best fit within its container. See remarks for details.

KeepAspectRatio

Gets or sets a value indicating whether the original aspect ratio is preserved when rendering an image. Used when StretchHorz or StretchVert is true.

StretchHorz

Gets or sets a value indicating whether an image is stretched horizontally to fill its container.

StretchVert

Gets or sets a value indicating whether an image is stretched vertically to fill its container.

TileHorz

Gets or sets a value indicating whether an image is tiled horizontally within its container. Ignored if StretchHorz is true.

TileVert

Gets or sets a value indicating whether an image is tiled vertically within its container. Ignored if StretchVert is true.

Methods

Name Description
ToString()

Returns a string that represents the current ImageAlign.