[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IFontFormat.Size

Size Property

Size

Gets or sets the size of the font in points.

The returned value specifies the font size applied to the represented text.

Declaration
double Size { get; set; }
Property Size As Double
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 40, 40, 100, 100);
shape.TextFrame.TextRange.Text = "Hello";
shape.TextFrame.TextRange.Font.Size = 18;
double fontSize = shape.TextFrame.TextRange.Font.Size;