SpreadJS Documentation
horizontalAlign Method
The horizontal alignment of the comment.
Gets or sets the horizontal alignment of the comment.
Syntax
var instance = new GcSpread.Sheets.Comment();
var returnValue; // Type: HorizontalAlign
returnValue = instance.horizontalAlign(value);
function horizontalAlign( 
   value : HorizontalAlign
) : HorizontalAlign;

Parameters

value
The horizontal alignment of the comment.

Return Value

The horizontal alignment of the comment.
Example
This example uses the horizontalAlign method.
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);
See Also

Reference

Comment class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.