Class UserPlaceableImageMM
Represents an image object that can be placed and aligned on a page in millimeters, whereby the properties can be set directly using code or they can be taken from another source as an input mask or a configuration dataset. For instance, by providing an input mask or configuration dataset, program users can customize the positioning of the image objects within the page's header themselves. For more information, see the example Alignment of Header Objects.
public class UserPlaceableImageMM : UserPlaceableImage
- Inheritance
-
UserPlaceableImageMM
- Inherited Members
Examples
public class ExampleReport : HeaderFooterReport {
public ExampleReport() {
ImageData image = new ImageJpegData("Example.jpg");
Logo = new UserPlaceableImageMM(image, ContentWidthMM, AlignHor.Right, -15, AlignVert.Top, 50);
}
Constructors
UserPlaceableImageMM(ImageData?, double, AlignHor, double, AlignVert, double?, double?)
Initializes a new instance of the UserPlaceableImageMM class with specified image data, positioning and alignment in millimeters.
public UserPlaceableImageMM(ImageData? imageData, double xMM, AlignHor alignHor, double yMM, AlignVert alignVert, double? widthMM = null, double? heightMM = null)
Parameters
imageData
ImageDataThe image data.
xMM
doubleThe horizontal position of the image in millimeters.
alignHor
AlignHorThe horizontal alignment of the image.
yMM
doubleThe vertical position of the image in millimeters.
alignVert
AlignVertThe vertical alignment of the image.
widthMM
double?The width of the image in millimeters. Defaults to null, which means that the width is calculated proportionally based on the height or if the height is null too, it sets the original width of the image.
heightMM
double?The height of the image in millimeters. Defaults to null, which means that the height is calculated proportionally based on the width or if the width is null too, it sets the original height of the image.
UserPlaceableImageMM(double, AlignHor, double, AlignVert, double?, double?)
Initializes a new instance of the UserPlaceableImageMM class with specified positioning and alignment in millimeters. As the image data is not set, this element is not displayed as long as the ImageData property is not set.
public UserPlaceableImageMM(double xMM, AlignHor alignHor, double yMM, AlignVert alignVert, double? widthMM = null, double? heightMM = null)
Parameters
xMM
doubleThe horizontal position of the image in millimeters.
alignHor
AlignHorThe horizontal alignment of the image.
yMM
doubleThe vertical position of the image in millimeters.
alignVert
AlignVertThe vertical alignment of the image.
widthMM
double?The width of the image in millimeters. Defaults to null, which means that the width is calculated proportionally based on the height or if the height is null too, it sets the original width of the image.
heightMM
double?The height of the image in millimeters. Defaults to null, which means that the height is calculated proportionally based on the width or if the width is null too, it sets the original height of the image.