GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    LineFormat Class

    Namespace:
    GemBox.Spreadsheet.Drawing
    Assembly:
    GemBox.Spreadsheet.dll

    Represents an outline style that can be applied to a number of different objects such as shapes and text. The line allows for the specifying of many different types of outlines including even line dashes and bevels.

    • C#
    • VB.NET
    public sealed class LineFormat
    Public NotInheritable Class LineFormat
    Inheritance:
    System.Object
    LineFormat

    Properties

    BeginArrow

    Gets or sets the decorations added to the head of a line.

    • C#
    • VB.NET
    public LineArrow BeginArrow { get; set; }
    Public Property BeginArrow As LineArrow
    Property Value
    LineArrow

    The decorations added to the head of a line.

    Remarks

    This property is applicable only on shape paths that are not closed.

    CapType

    Gets or sets the ending caps that should be used for this line. This also affects the ends of line segments for dashed lines.

    Default value is Square.

    • C#
    • VB.NET
    public LineCapType CapType { get; set; }
    Public Property CapType As LineCapType
    Property Value
    LineCapType

    The ending caps that should be used for this line.

    CompoundType

    Gets or sets the compound line type to be used for the underline stroke.

    Default value is Single.

    This member is currently not supported in PDF, XPS, and image formats.

    • C#
    • VB.NET
    public LineCompoundType CompoundType { get; set; }
    Public Property CompoundType As LineCompoundType
    Property Value
    LineCompoundType

    The compound line type to be used for the underline stroke.

    DashType

    Gets or sets the dashing scheme that should be used for this line.

    Default value is Solid (no dashes).

    • C#
    • VB.NET
    public LineDashType DashType { get; set; }
    Public Property DashType As LineDashType
    Property Value
    LineDashType

    The dashing scheme that should be used for this line.

    EndArrow

    Gets or sets the decorations added to the tail of a line.

    • C#
    • VB.NET
    public LineArrow EndArrow { get; set; }
    Public Property EndArrow As LineArrow
    Property Value
    LineArrow

    The decorations added to the tail of a line.

    Remarks

    This property is applicable only on shape paths that are not closed.

    Fill

    Gets or sets the fill of the outline.

    Fill types Gradient, Pattern and Picture are currently not supported in PDF, XPS, and image formats.

    • C#
    • VB.NET
    public FillFormat Fill { get; set; }
    Public Property Fill As FillFormat
    Property Value
    FillFormat

    The fill of the outline.

    JoinType

    Gets or sets the line join type that indicates how connected lines are joined.

    Default value is Round.

    • C#
    • VB.NET
    public LineJoinType JoinType { get; set; }
    Public Property JoinType As LineJoinType
    Property Value
    LineJoinType

    The line join type that indicates how connected lines are joined.

    Width

    Gets or sets the width to be used for the underline stroke.

    Default value is 0.

    • C#
    • VB.NET
    public Length Width { get; set; }
    Public Property Width As Length
    Property Value
    Length

    The width to be used for the underline stroke.

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.