[]
        
(Showing Draft Content)

GrapeCity.Documents.Barcode.BarcodeSizeOptions

Class BarcodeSizeOptions

Namespace
GrapeCity.Documents.Barcode
Assembly
GcDocs.Barcode.dll

Specifies options affecting the size of a barcode, such as the width of narrow bars, narrow to wide bars' ratio etc.

public class BarcodeSizeOptions : BarCodeOptionsBase
Inheritance
object
BarcodeSizeOptions
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()

Constructors

BarcodeSizeOptions()

public BarcodeSizeOptions()

Properties

BarHeight

Gets or sets the bar height. The default is 36 units.

public float BarHeight { get; set; }

Property Value

float

ModuleSize

Gets or sets the barcode module size in graphic units (see Resolution).

Zero indicates the default which depends on the code type:

  • 0.75 units for simple "bar" barcodes.
  • 3.75 units for matrix barcodes (QRCode, DataMatrix).
  • 3 units for RSS stacked barcodes (RSSStacked, RSSExpandedStacked).
  • 2.25 units for Code49 barcodes.
  • 1.5 units for MicroPDF417 barcodes.
  • 2.25 units for composite barcodes.
public float ModuleSize { get; set; }

Property Value

float

NarrowWideRatio

Gets or sets the ratio between narrow and wide bars. Allowed values are between 2 and 3, or 0 to use code type specific ratio. The default is 2.

public float NarrowWideRatio { get; set; }

Property Value

float

SizeMode

Gets or sets the barcode sizing mode. The default is Normal.

public BarcodeSizeMode SizeMode { get; set; }

Property Value

BarcodeSizeMode

SupplementSpacing

Gets or sets the spacing between the main and the supplement bacodes in graphic units. The default is 7.5 units.

public float SupplementSpacing { get; set; }

Property Value

float

Methods

AssignFrom(BarCodeOptionsBase)

Copies properties from another BarCodeOptionsBase to the current object.

public override void AssignFrom(BarCodeOptionsBase source)

Parameters

source BarCodeOptionsBase

The source object to copy properties from.

Clone()

Makes a copy of the current object.

public override object Clone()

Returns

object

Equals(object)

Compares this BarcodeSizeOptions to the specified object to determine whether the two objects specify the same options.

public override bool Equals(object obj)

Parameters

obj object

The object to which the current BarcodeSizeOptions is compared.

Returns

bool

True if the two objects specify the same options, false otherwise.

GetHashCode()

Calculates and retrieves a hash code based on the current values of the specified options.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string representation of the current object.

public override string ToString()

Returns

string