[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IFontFormat.Underline

Underline Property

Underline

Gets or sets the underline style of the represented text.

This property uses a TextUnderlineType value that describes how the text is underlined.

Declaration
TextUnderlineType Underline { get; set; }
Property Underline As TextUnderlineType
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 60);
shape.TextFrame.TextRange.Text = "Hello";
shape.TextFrame.TextRange.Font.Underline = TextUnderlineType.Single;
TextUnderlineType underline = shape.TextFrame.TextRange.Font.Underline;