ValueHorzAlign - property of the PmfButton object
Description:
The way of horizontal text alignment.
Syntax:
String ValueHorzAlign
Values:
center (default) - to the center
Note:
Property access
for read and write.
It is possible to write into this property only if the
PmForm window has not been opened yet.
This property is also functional in
Web panels.
Example:
JavaScriptSelect and copy to clipboard
// Setting the property when the object is created
var oBtn = oForm.CreateItem("button", "Id1", "Title", "ValueHorzAlign:right;");
var sValue = oBtn.ValueHorzAlign;
// Reading from the property
oBtn.ValueHorzAlign = "right";
// Writing into the property