Click or drag to resize

DrawingBringForward Method (Drawing)

Brings this drawing forward so that is not hidden by the specified drawing and all other drawings behind the specified drawing.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1041 (21.3.35.1041)
Syntax
public void BringForward(
	Drawing inFrontOfDrawing
)

Parameters

inFrontOfDrawing
Type: GemBox.PresentationDrawing
The drawing in front of which should this drawing be placed.
Exceptions
ExceptionCondition
InvalidOperationExceptionDrawing is not contained in any group (Parent property is ).
ArgumentExceptioninFrontOfDrawing is not in the same group as this drawing.
Remarks
This method works only if this drawing's Parent is not and it moves this drawing by one place before the inFrontOfDrawing in the parent's Drawings collection.
See Also