CADability dotNET
Centers the patch with the given index according to the horizontal and vertical center mode. If scale is 0.0 the current scaling remains unchanged.

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public void CenterPatch(
	int index,
	double scale,
	Layout..::..HorizontalCenter hor,
	Layout..::..VerticalCenter ver
)
Visual Basic
Public Sub CenterPatch ( _
	index As Integer, _
	scale As Double, _
	hor As Layout..::..HorizontalCenter, _
	ver As Layout..::..VerticalCenter _
)
Visual C++
public:
void CenterPatch(
	int index, 
	double scale, 
	Layout..::..HorizontalCenter hor, 
	Layout..::..VerticalCenter ver
)

Parameters

index
Type: System..::..Int32
index of the patch
scale
Type: System..::..Double
scaling factor or 0.0
hor
Type: CADability..::..Layout..::..HorizontalCenter
horizontal position mode
ver
Type: CADability..::..Layout..::..VerticalCenter
vertical position mode

See Also