📄 barcodecontrolclass.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>BarcodeControl Class</TITLE>
</HEAD>
<body topmargin="0">
<font size="-1"> Barcode .Net Class Library</font>
<H3>BarcodeControl Class</H3>
<P>Exposes all the core functionalities of the Barcode .Net library as a <b>Control</b>.</P>
<P>System.Object<BR>
System.MarshalByRefObject<BR>
System.ComponentModel.Component<BR>
System.Windows.Forms.Control<BR>
<B>Bokai.Barcodes.BarcodeControl</B><BR>
<PRE><font size="-1">[Visual Basic]</font>
<B>Public Class BarcodeControl
Inherits Control
</B>
<font size="-1">[C#]</font>
<B>public class BarcodeControl : Control</B>
</PRE>
<H4>Thread Safety</H4>
<P>Any public static (<B>Shared</B> in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.</P>
<H4>Remarks</H4>
<P><B>BarcodeControl</B> is just a <b>Control</b> wrapper of <b>Barcode</b> and exposes the same
functionalities. You can host it wherever a <B>Control</B> can be hosted. On a <b>Form</b>, you can
use either <b>Barcode</b> or <b>BarcodeControl</b>. You might want to use <b>BarcodeControl</b>
if you prefer to see the barcode at design time while you set the properties; typically, you might
still want to set the <b>Visible</b> property to False so that the barcode displayed is at designt time only.
<p>Being a wrapper of <b>Barcode</b>, <b>BarcodeControl</b> supports the same set of features:
<ul>
<li>You can draw a barcode to a Graphics object using one of the <a href="mdraw.htm">Draw</a> methods.
<li>You can generate a barcode image (in any .Net supported image formats including GIF, PNG,
JPEG, and BMP) and send it to a <b>Stream</b> (<a href="mmakeimage.htm">MakeImage</a>) or save
it to a file (<a href="msaveimage.htm">SaveImage</a>).
<li>You can also get the barcode bar and space definitions (positions and widths).
<li>Various drawing attributes are supported, including rotation, fonts, color, etc.
</ul>
<H4 class="dtH4">See Also</H4>
<P><A HREF="barcode.htm">Barcode</A> | <A HREF="barcodeImage.htm">BarcodeImage</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 + -