If the xDimension property is not set for BarCodeBuilder, is there a default?
I’m supporting this code in which the xDimension setting has been commented out, and I don’t know what the resulting xdimension is:
var objBarCodeBuilder = new BarCodeBuilder {SymbologyType = Symbology.Code128};
if (text.Trim() != string.Empty)
{
objBarCodeBuilder.CodeText = text.Trim();
objBarCodeBuilder.BarHeight = 12F;
// builder.xDimension = 0.55F;
}
Hi Geoffrey,
Thank you for your inquiry.
Please note that the default value for xDimension property of the BarCodeBuilder class is 0.6f. Following is the list of default values for your reference.
- width = 100
- height = 60
- borderWidth = 0.6f
- xDimension = 0.6f
- yDimension = 2.0f
- barHeight = 15f
- postnetShortBarHeight = 5f
- planetShortBarHeight = 5f
- codeTextSpace = 1f
- supplementSpace = 4f
Hope the above information helps. Feel free to contact us in case you have further comments or queries.
Just what I needed. Thanks!
Hi Geoffrey,
Thank you for updating us about the status.
It’s good to know that the information we shared, worked for you.