Calc Image Render Bounds(Image, Rectangle, ContentAlignment) Method
Determines the size and location of an image drawn within the Label control based on the alignment of the control.
protected: System::Drawing::Rectangle CalcImageRenderBounds(System::Drawing::Image ^ image, System::Drawing::Rectangle r, System::Drawing::ContentAlignment align);
protected System.Drawing.Rectangle CalcImageRenderBounds (System.Drawing.Image image, System.Drawing.Rectangle r, System.Drawing.ContentAlignment align);
member this.CalcImageRenderBounds : System.Drawing.Image * System.Drawing.Rectangle * System.Drawing.ContentAlignment -> System.Drawing.Rectangle
The alignment of content within the control.
A Rectangle that represents the size and location of the specified image within the control.
You can use this method within a derived class of Label, to determine the size and location of an image to draw within the Label control based on its location within the control. The location of the image is based on the value of the control's ImageAlign property.