[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.Contour.GetBounds

GetBounds Method

GetBounds(LayoutView)

Gets the minimal RectangleF that contains all points of the Contour relative to the specified LayoutView.

Declaration
public RectangleF GetBounds(LayoutView targetView)
Public Function GetBounds(targetView As LayoutView) As RectangleF
Parameters
Type Name Description
LayoutView targetView

The destination LayoutView or null to reference the LayoutHost.

Returns
Type Description
RectangleF

GetBounds(LayoutView, out float, out float, out float, out float)

Gets the minimum and maximum positions of the Contour relative to the specified LayoutView.

Declaration
public void GetBounds(LayoutView targetView, out float minX, out float maxX, out float minY, out float maxY)
Public Sub GetBounds(targetView As LayoutView, ByRef minX As Single, ByRef maxX As Single, ByRef minY As Single, ByRef maxY As Single)
Parameters
Type Name Description
LayoutView targetView

The destination LayoutView or null to reference the LayoutHost.

float minX

The minimum X coordinate of the Contour in the target view's coordinates.

float maxX

The maximum X coordinate of the Contour in the target view's coordinates.

float minY

The minimum Y coordinate of the Contour in the target view's coordinates.

float maxY

The maximum Y coordinate of the Contour in the target view's coordinates.

GetBounds(LayoutRect)

Gets the minimal RectangleF that contains all points of the Contour relative to the specified LayoutRect.

Declaration
public RectangleF GetBounds(LayoutRect targetRect)
Public Function GetBounds(targetRect As LayoutRect) As RectangleF
Parameters
Type Name Description
LayoutRect targetRect

The target LayoutRect.

Returns
Type Description
RectangleF

GetBounds(LayoutRect, out float, out float, out float, out float)

Gets the minimum and maximum positions of the Contour relative to the specified LayoutRect.

Declaration
public void GetBounds(LayoutRect targetRect, out float minX, out float maxX, out float minY, out float maxY)
Public Sub GetBounds(targetRect As LayoutRect, ByRef minX As Single, ByRef maxX As Single, ByRef minY As Single, ByRef maxY As Single)
Parameters
Type Name Description
LayoutRect targetRect

The target LayoutRect.

float minX

The minimum X offset of the Contour relative to targetRect's left side.

float maxX

The maximum X offset of the Contour relative to targetRect's left side.

float minY

The minimum Y offset of the Contour relative to targetRect's top side.

float maxY

The maximum Y offset of the Contour relative to targetRect's top side.