[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ILabelOption

ILabelOption Interface

Represents label display options for a barcode.

This interface is implemented by barcode objects that support human-readable labels. Use it to determine whether the label is displayed and where the label is positioned relative to the barcode.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface ILabelOption
Public Interface ILabelOption
Examples
worksheet.Range["A1"].Value = "123456";
worksheet.Range["B1"].Formula = "=BC_CODE39(A1)";
ILabelOption labelOption = (ILabelOption) worksheet.Range["B1"].Value;
bool showLabel = labelOption.ShowLabel;
string labelPosition = labelOption.LabelPosition;

Properties

Name Description
LabelPosition

Gets the position of the label text when the barcode displays a label.

Use this property together with ShowLabel to determine how the human-readable label is displayed for a barcode. Common values include "top" and "bottom".

ShowLabel

Gets whether the barcode displays its human-readable label text.

Use this property to determine whether the barcode renders label text. When this property returns true, the label position is defined by LabelPosition.