FlexReport for WinForms
GetMetrics メソッド (BarcodeExRenderer)


C1.Document.4.6.2 アセンブリ > C1.Document 名前空間 > BarcodeExRenderer クラス : GetMetrics メソッド
The barcode text.
The barcode type.
Calculates size of barcode on the base of BarcodeOptions.SizeOptions. ATTENTION!!! This method ignores BarDirection, i.e. it always calculate values as Options.BarDirection == BarCodeDirection.LeftToRight.
シンタックス
'宣言
 
Public Function GetMetrics( _
   ByVal text As System.String, _
   ByVal codeType As GrapeCity.Documents.Barcode.CodeType _
) As BarcodeExRenderer.BarcodeMetrics
'使用法
 
Dim instance As BarcodeExRenderer
Dim text As System.String
Dim codeType As GrapeCity.Documents.Barcode.CodeType
Dim value As BarcodeExRenderer.BarcodeMetrics
 
value = instance.GetMetrics(text, codeType)
public BarcodeExRenderer.BarcodeMetrics GetMetrics( 
   System.string text,
   GrapeCity.Documents.Barcode.CodeType codeType
)

パラメータ

text
The barcode text.
codeType
The barcode type.

戻り値の型

The metrics of barcode, units are pixels of C1.Document.Util.C1Graphics.
参照

参照

BarcodeExRenderer クラス
BarcodeExRenderer メンバ