Printer.FillColor Property
Gets or sets the color that is used to fill in shapes created by using the Circle and Line graphics methods.
Namespace: Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
public int FillColor { get; set; }
public:
property int FillColor {
int get();
void set(int value);
}
member FillColor : int with get, set
Public Property FillColor As Integer
Property Value
Type: System.Int32
Returns an Integer.
Remarks
When the FillStyle property is set to its default (transparent), the FillColor setting is ignored. If no FillColor is specified, FillColor defaults to black.
Note
You can convert any .NET Framework Color or SystemColors color value to a FillColor value by calling the ToArgb function:
Printer.FillColor = System.Drawing.Color.Violet.ToArgb
The following table lists the ColorConstants and SystemColorConstants values that are valid for the FillColor property.
Constant |
Value |
.NET Framework equivalent |
---|---|---|
vbBlack |
&h00 |
|
vbRed |
&hFF |
|
vbGreen |
&hFF00 |
|
vbYellow |
&hFFFF |
|
vbBlue |
&hFF0000 |
|
vbMagenta |
&hFF00FF |
|
vbCyan |
&hFFFF00 |
|
vbWhite |
&hFFFFFF |
|
vbScrollBars |
&H80000000 |
|
vbDesktop |
&H80000001 |
|
vbActiveTitleBar |
&H80000002 |
|
vbInactiveTitleBar |
&H80000003 |
|
vbMenuBar |
&H80000004 |
|
vbWindowBackground |
&H80000005 |
|
vbWindowFrame |
&H80000006 |
|
vbMenuText |
&H80000007 |
|
vbWindowText |
&H80000008 |
|
vbTitleBarText |
&H80000009 |
|
vbActiveBorder |
&H8000000A |
|
vbInactiveBorder |
&H8000000B |
|
vbApplicationWorkspace |
&H8000000C |
|
vbHighlight |
&H8000000D |
|
vbHighlightText |
&H8000000E |
|
vbButtonFace |
&H8000000F |
|
vbButtonShadow |
&H80000010 |
|
vbGrayText |
&H80000011 |
|
vbButtonText |
&H80000012 |
|
vbInactiveCaptionText |
&H80000013 |
|
vb3DHighlight |
&H80000014 |
|
vb3DDKShadow |
&H80000015 |
|
vb3DLight |
&H80000016 |
|
vb3DFace |
&H8000000F |
|
vb3Dshadow |
&H80000010 |
|
vbInfoText |
&H80000017 |
|
vbInfoBackground |
&H80000018 |
Note
Functions and objects in the Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.
Examples
The following example demonstrates how to set the FillColor property to print a filled red circle.
Dim pr As New Printer
pr.FillStyle = vbFSSolid
pr.FillColor = vbRed
pr.Circle(2000, 2000, 1000)
pr.EndDoc()
See Also
Printer Class
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Namespace
4e434922-3709-49c6-a69d-38120ed72d7a7f9351ea-cb3e-4615-8f70-5a29c165c1a7bc1bcb98-e13b-4c68-a514-045c042dbf36
Return to top