ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1OwnerDrawPrint.RenderDirectLine Method

Renders a line for the document.

[Visual Basic]

Public Sub RenderDirectLine( _

ByVal fromX As Object, _

ByVal fromY As Object, _

ByVal toX As Object, _

ByVal toY As Object, _

ByVal color As Color, _

ByVal width As Double _

)

[C#]

public void RenderDirectLine(

object fromX,

object fromY,

object toX,

object toY,

Color color,

double width

);

[Delphi]

public procedure RenderDirectLine(

fromX: Object;

fromY: Object;

toX: Object;

toY: Object;

color: Color;

width: Double

);

Parameters

fromX

Start x-coordinate.

fromY

Start y-coordinate.

toX

End x-coordinate.

toY

End y-coordinate.

color

Color of the line.

width

Width of the line.

Remarks

Positions (fromX, fromY, toX, and toY) may be specified either as numbers (in which case they are interpreted in default units), as strings consisting of a number followed by a unit name (in which case units may be specified).

For position and size parameters, use the following:

cm

Centimeters.

em

The height of the element's font.

ex

The height of the letter "x".

in

Inches.

mm

Millimeters.

%

Percent of the parent's size.

pc

Picas (1 pica = 1/6 inch).

pix

Pixels.

pt

Points (1 point = 1/72 inch).

tw

Pixels (1 twip = 1/1440 inch).

doc

Document units (1 unit = 1/300 inch).

For example: "25pix" would be 25 pixels, "25cm" 25 centimeters.

See Also

C1OwnerDrawPrint Class | C1OwnerDrawPrint Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.