Click or drag to resize
BarcodeControl Class
ASP.NET BarcodeControl
Inheritance Hierarchy

Namespace:  Limilabs.Web
Assembly:  Barcode (in Barcode.dll) Version: 2.0.0.20
Syntax
public class BarcodeControl : Control

The BarcodeControl type exposes the following members.

Constructors
  NameDescription
Public methodBarcodeControl
Initializes a new instance of the BarcodeControl class
Top
Properties
  NameDescription
Public propertyAppRelativeTemplateSourceDirectory
Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control.
(Inherited from Control.)
Public propertyAttributes
Public propertyBackColor
Back color.
Public propertyBarColor
Bar color.
Public propertyBearerBars
Bearer bars type.
Public propertyBearerBarsSize
Bearer bars size in pixels.
Public propertyBindingContainer
Gets the control that contains this control's data binding.
(Inherited from Control.)
Public propertyChecksumAdd
If true adds checksum character(s).
Public propertyChecksumVisible
If true checksum character(s) is visible in barcode text.
Public propertyClientID
Gets the control ID for HTML markup that is generated by ASP.NET.
(Inherited from Control.)
Public propertyClientIDMode
Gets or sets the algorithm that is used to generate the value of the ClientID property.
(Inherited from Control.)
Public propertyCode128SetMode
You can specify the set that should be used when using Code128. BestFitABC is default.
Public propertyControls
Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
(Inherited from Control.)
Public propertyCustomText
Custom text which will be rendered instead of Number.
Public propertyDataItemContainer
Gets a reference to the naming container if the naming container implements IDataItemContainer.
(Inherited from Control.)
Public propertyDataKeysContainer
Gets a reference to the naming container if the naming container implements IDataKeysControl.
(Inherited from Control.)
Public propertyEAN128IsFNC1OmmitedForFixedLength
True if FNC1 control character should be ommited for fixed length fields. This results in shorter barcode. True is default.
Public propertyEnableTheming
Gets or sets a value indicating whether themes apply to this control.
(Inherited from Control.)
Public propertyEnableViewState
Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client.
(Inherited from Control.)
Public propertyFontHeight
Fraction of Height which will be reserved for text label. Between 0 and 1.0. Default is 0.15
Public propertyFontName
Font name that will be used for any text on barcode image.
Public propertyFontStyle
Font style that will be used for any text on barcode image.
Public propertyForeColor
Text color.
Public propertyHeight
Barcode height.
Public propertyID
Gets or sets the programmatic identifier assigned to the server control.
(Inherited from Control.)
Public propertyImageType
Barcode image format.
Public propertyIsNumberVisible
True if text should be visible in rendered barcode.
Public propertyLeftQuietZone
Gets or sets left quiet zone size. If SetMarginsAutomatically is set to true always uses this.NarrowBarWidth*9.
Public propertyNamingContainer
Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same ID property value.
(Inherited from Control.)
Public propertyNarrowBarWidth
Width of the narrow bar in rendered barcode in pixels.
Public propertyNumber
Barcode number. Separate supplement with ',' char.
Public propertyPage
Gets a reference to the Page instance that contains the server control.
(Inherited from Control.)
Public propertyParent
Gets a reference to the server control's parent control in the page control hierarchy.
(Inherited from Control.)
Public propertyRatio
Wide/narrow bar ratio.
Public propertyRenderingCompatibility
Gets a value that specifies the ASP.NET version that rendered HTML will be compatible with.
(Inherited from Control.)
Public propertyRightQuietZone
Gets or sets right quiet zone size. If SetMarginsAutomatically is set to true always uses this.NarrowBarWidth*9.
Public propertyRotation
Rotation of the rendered barcode.
Public propertySetMarginsAutomatically
If set to true RightQuietZone and LeftQuietZone always uses this.NarrowBarWidth*9.
Public propertySite
Gets information about the container that hosts the current control when rendered on a design surface.
(Inherited from Control.)
Public propertySkinID
Gets or sets the skin to apply to the control.
(Inherited from Control.)
Public propertySymbology
Barcode symbology.
Public propertyTemplateControl
Gets or sets a reference to the template that contains this control.
(Inherited from Control.)
Public propertyTemplateSourceDirectory
Gets the virtual directory of the Page or UserControl that contains the current server control.
(Inherited from Control.)
Public propertyUniqueID
Gets the unique, hierarchically qualified identifier for the server control.
(Inherited from Control.)
Public propertyValidateRequestMode
Gets or sets a value that indicates whether the control checks client input from the browser for potentially dangerous values.
(Inherited from Control.)
Public propertyViewStateMode
Gets or sets the view-state mode of this control.
(Inherited from Control.)
Public propertyVisible
Gets or sets a value that indicates whether a server control is rendered as UI on the page.
(Inherited from Control.)
Public propertyXDpi
Horizontal resolution in dots per inch.
Public propertyYDpi
Vertical resolution in dots per inch.
Top
Methods
  NameDescription
Public methodApplyStyleSheetSkin
Applies the style properties defined in the page style sheet to the control.
(Inherited from Control.)
Public methodDataBind
Binds a data source to the invoked server control and all its child controls.
(Inherited from Control.)
Public methodDispose
Enables a server control to perform final clean up before it is released from memory.
(Inherited from Control.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFindControl
Searches the current naming container for a server control with the specified id parameter.
(Inherited from Control.)
Public methodFocus
Sets input focus to a control.
(Inherited from Control.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRouteUrl(Object)
Gets the URL that corresponds to a set of route parameters.
(Inherited from Control.)
Public methodGetRouteUrl(RouteValueDictionary)
Gets the URL that corresponds to a set of route parameters.
(Inherited from Control.)
Public methodGetRouteUrl(String, Object)
Gets the URL that corresponds to a set of route parameters and a route name.
(Inherited from Control.)
Public methodGetRouteUrl(String, RouteValueDictionary)
Gets the URL that corresponds to a set of route parameters and a route name.
(Inherited from Control.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUniqueIDRelativeTo
Returns the prefixed portion of the UniqueID property of the specified control.
(Inherited from Control.)
Public methodHasControls
Determines if the server control contains any child controls.
(Inherited from Control.)
Public methodRenderControl
Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
(Inherited from Control.)
Public methodResolveClientUrl
Gets a URL that can be used by the browser.
(Inherited from Control.)
Public methodResolveUrl
Converts a URL into one that is usable on the requesting client.
(Inherited from Control.)
Public methodSetRenderMethodDelegate
Assigns an event handler delegate to render the server control and its content into its parent control.
(Inherited from Control.)
Public methodSetTraceData(Object, Object)
Sets trace data for design-time tracing of rendering data, using the trace data key and the trace data value.
(Inherited from Control.)
Public methodSetTraceData(Object, Object, Object)
Sets trace data for design-time tracing of rendering data, using the traced object, the trace data key, and the trace data value.
(Inherited from Control.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventDataBinding
Occurs when the server control binds to a data source.
(Inherited from Control.)
Public eventDisposed
Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
(Inherited from Control.)
Public eventInit
Occurs when the server control is initialized, which is the first step in its lifecycle.
(Inherited from Control.)
Public eventLoad
Occurs when the server control is loaded into the Page object.
(Inherited from Control.)
Public eventPreRender
Occurs after the Control object is loaded but prior to rendering.
(Inherited from Control.)
Public eventUnload
Occurs when the server control is unloaded from memory.
(Inherited from Control.)
Top
Remarks
To use BarcodeControl:
  1. Create new ASP.NET project
  2. Add new web.config file if you don't have one
  3. Set up an HttpHandler in an ASP.NET web application - add the following code to your web.config file, inside the <system.web> section:
                    <httpHandlers>
                        <add verb="*" path="Barcode.axd" type="Limilabs.Web.BarcodeHttpHandler, Barcode"  />
                    </httpHandlers>
                
  4. Add Barcode control to the toolbox:
    • use the right mouse button on toolbox
    • click 'Choose items...' or 'Add/Remove Items'
    • then click 'Browse' and point 'Barcode.dll' file
  5. Drag and drop BarcodeControl from toolbox to your webpage. This will add the references to Barcode.dll to your project.
See Also