xbrushesxpens
[[xbrushesxpens]] last edit on
May 31, 2007
2:19 PM
by Anonymous
Description
Constants to define the colours available for printing text, drawing lines or filling blocks of colour.
Brushes are used to define the colour for text and to add blocks of colour to a document, such as a rectangle or an elipse.
Pens are used to draw lines.
Syntax
Examples
Constants to define the colours available for printing text, drawing lines or filling blocks of colour.
Brushes are used to define the colour for text and to add blocks of colour to a document, such as a rectangle or an elipse.
Pens are used to draw lines.
Syntax
- AliceBlue
- AntiqueWhite
- Aqua
- ...
- WhiteSmoke
- Yellow
- YellowGreen
Examples
'draw crossing lines Dim pen As XPen = New XPen(XColor.FromArgb(255, 0, 0)) oXGraphics.DrawLine(pen, New XPoint(0, 0), New XPoint(oPDFPage.Width.Point, oPDFPage.Height.Point)) oXGraphics.DrawLine(pen, New XPoint(oPDFPage.Width.Point, 0), New XPoint(0, oPDFPage.Height.Point))
' Draw a rectangle to use as a back ground
oXGraphics.DrawRectangle(XBrushes.LightYellow, _
New XRect(100, 500, oPDFPage.Width.Point - 200, oXFont.Height * 5))