GcSpread.Sheets Namespace > Comment class : horizontalAlign Method |
var instance = new GcSpread.Sheets.Comment(); var returnValue; // Type: HorizontalAlign returnValue = instance.horizontalAlign(value);
function horizontalAlign( value : HorizontalAlign ) : HorizontalAlign;
var comment = new GcSpread.Sheets.Comment(); comment.text("new comment!"); comment.backColor("yellow"); comment.foreColor("green"); comment.displayMode(GcSpread.Sheets.DisplayMode.AlwaysShown); comment.horizontalAlign(GcSpread.Sheets.HorizontalAlign.center); activeSheet.setComment(5,5,comment);