ChartDirector 5.1 (.NET Edition)

TextBox.setMargin2


Usage

[VB] Public Sub setMargin2(leftMargin As Integer, rightMargin As Integer, topMargin As Integer, bottomMargin As Integer)
[C#] public void setMargin2(int leftMargin, int rightMargin, int topMargin, int bottomMargin);

Description

Sets the margins of the text box.

The margins of a text box are the distances between the borders of the text box to the text inside. By default, the left and right margins are approximately half the font width, and the top and bottom margins are approximately 1/4 of the font height.

Arguments

ArgumentDefaultDescription
leftMargin(Mandatory)The left margin in pixels.
rightMargin(Mandatory)The right margin in pixels.
topMargin(Mandatory)The top margin in pixels.
bottomMargin(Mandatory)The bottom margin in pixels.

Return Value

None