📄 drawflagsenum.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML DIR="LTR"><HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>BarcodeDrawFlags Enumeration</TITLE>
</HEAD>
<body topmargin="0">
<font size="-1"> Barcode .Net Class Library</font>
<H3>BarcodeDrawFlags Enumeration</H3>
<P>Specifies the drawing flags to use when drawing the barcode.
<br>
This enumeration allows a bitwise combination of its member values.
</P>
<PRE><font size="-1">[Visual Basic]</font>
<B>Public Enum BarcodeDrawFlags</B>
<font size="-1">[C#]</font>
<B>public enum BarcodeDrawFlags</B>
</PRE>
<H4 class="dtH4">Members</H4>
<div class="tablediv"><table cellspacing="0" border="1">
<TR>
<TH bgcolor="#cccccc">Member Name</TH>
<TH bgcolor="#cccccc">Description</TH>
</TR>
<TR>
<TD><tt>Left</tt></TD>
<TD>Align the barcode to the left edge of the target rectangle.</TD>
</TR>
<TR>
<TD><tt>Right</tt></TD>
<TD>Align the barcode to the right edge of the target rectangle.</TD>
</TR>
<TR>
<TD><tt>Center</tt></TD>
<TD>Horizontally center the barcode in the target rectangle.</TD>
</TR>
<TR>
<TD><tt>NoDrawBackground</tt></TD>
<TD>Do not draw the background.</TD>
</TR>
<TR>
<TD><tt>UniBarHeight</tt></TD>
<TD>Draw all the barcode bars to the same length.</TD>
</TR>
<TR>
<TD><tt>HideMainText</tt></TD>
<TD>Do not draw the caption of the main barcode.</TD>
</TR>
<TR>
<TD><tt>HideAddOnText</tt></TD>
<TD>Do not draw the caption of the add-on barcode.</TD>
</TR>
<TR>
<TD><tt>AddOnTextAtTop</tt></TD>
<TD>Draw the add-on barcode caption above the add-on barcode.</TD>
</TR>
<TR>
<TD><tt>AddOnTextAtBottom</tt></TD>
<TD>Draw the add-on barcode caption below the add-on barcode.</TD>
</TR>
<TR>
<TD><tt>MainTextAtTop</tt></TD>
<TD>Draw the main barcode caption above the main barcode.</TD>
</TR>
<TR>
<TD><tt>MainTextAtBottom</tt></TD>
<TD>Draw the main barcode caption below the main barcode.</TD>
</TR>
<TR>
<TD><tt>NoUpcSmallFont</tt></TD>
<TD>Do not use a smaller font to draw the first and last characters of a UPC barcode caption. </TD>
</TR>
<TR>
<TD><tt>RetainAspectRatio</tt></TD>
<TD>Adjust proportionally the barcode height when the barcode width is changed due to pixel alignment.</TD>
</TR>
<TR>
<TD><tt>Top</tt></TD>
<TD>Align the barcode to the top edge of the target rectangle.</TD>
</TR>
<TR>
<TD><tt>Bottom</tt></TD>
<TD>Align the barcode to the bottom edge of the target rectangle.</TD>
</TR>
<TR>
<TD><tt>Middle</tt></TD>
<TD>Vertically center the barcode in the target rectangle.</TD>
</TR>
<TR>
<TD><tt>CalculateSizeOnly</tt></TD>
<TD>Do not actually draw the barcode; calculate the barcode position and size only.</TD>
</TR>
<TR>
<TD><tt>NotPixelAligned</tt></TD>
<TD>Draw the barcode exactly to the specified size, ignoring the proportions between the barcode bars/spaces. The barcode may fail to scan!</TD>
</TR>
<TR>
<TD><tt>NoStretchText</tt></TD>
<TD>Do not stretch the barcode caption to fit the full width of the barcode:</TD>
</TR>
<TR>
<TD><tt>ShowCode39StartStop</tt></TD>
<TD>Use a "*" to start and end the caption of a Code 39 barcode</TD>
</TR>
<TR>
<TD><tt>Clip</tt></TD>
<TD>Clip the barcode to the target rectangle.</TD>
</TR>
<TR>
<TD><tt>PaintWholeRect</tt></TD>
<TD>Paint the background of the entire target rectangle even if the actual barcode
will only take up part of it.</TD>
</TR>
<TR>
<TD><tt>DrawTextOnly</tt></TD>
<TD>Draw only the barcode data, not the barcode.</TD>
</TR>
<TR>
<TD><tt>DrawBackgroundOnly</tt></TD>
<TD>Draw only the background, not the barcode.</TD>
</TR>
<TR>
<TD><tt>WidthPerModule</tt></TD>
<TD>Indicates that the width parameter specifies the width of the thinnest barcode bar
rather than that of the entire barcode.</TD>
</TR>
<TR>
<TD><tt>NoRestoreGraphicsState</tt></TD>
<TD>Do not restore the state of the Graphics object after drawing.</TD>
</TR>
</table></div>
<H4 class="dtH4">See Also</H4>
<P><A HREF="barcodeDraw1.htm">Draw (1)</A> |
<A HREF="barcodeDraw2.htm">Draw (2)</A> |
<A HREF="barcodeDraw3.htm">Draw (3)</A></P>
<HR>
<font size="-1">© 2002 Bokai Corporation. All rights reserved.</font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -