Calculates aligned rectangle.

Namespace:  Greatis.PrintSuite
Assembly:  Greatis.PrintSuite (in Greatis.PrintSuite.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function AlignRect ( _
	args As PrintContentEventArgs, _
	area As Rectangle, _
	content As Rectangle, _
	offset As Point, _
	align As ContentAlignment _
) As Rectangle
C#
public static Rectangle AlignRect(
	PrintContentEventArgs args,
	Rectangle area,
	Rectangle content,
	Point offset,
	ContentAlignment align
)
Visual C++
public:
static Rectangle AlignRect(
	PrintContentEventArgs^ args, 
	Rectangle area, 
	Rectangle content, 
	Point offset, 
	ContentAlignment align
)
JavaScript
Greatis.PrintSuite.Service.alignRect = function(args, area, content, offset, align);

Parameters

args
Type: Greatis.PrintSuite..::.PrintContentEventArgs
Arguments from print event.
area
Type: System.Drawing..::.Rectangle
Target area rectangle.
content
Type: System.Drawing..::.Rectangle
Content rectangle to be aligned.
offset
Type: System.Drawing..::.Point
Vertical and horizontal offset of result rectangle in percents from result width and heoght.
align
Type: System.Drawing..::.ContentAlignment
Align mode.

Return Value

Aligned content rectangle.

See Also