Xceed Workbooks for .NET v3.0 Documentation
Xceed.Drawing.NET Assembly / Xceed.Drawing Namespace / Pen Class


In This Topic
    Pen Class
    In This Topic
    Encapsulates a SkiaSharp.SKPaint in .NET5+ or a System.Drawing.Pen in .NET Framework.
    Object Model
    Pen ClassColor Structure
    Syntax
    'Declaration
     
    
    Public Class Pen 
    'Usage
     
    
    Dim instance As Pen
    public class Pen 
    Inheritance Hierarchy

    System.Object
       Xceed.Drawing.Pen

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Creates a Pen object from specific values.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the Pen's Color.  
    Public PropertyGets the dash's offset.  
    Public PropertyGets or sets the pattern that will be used for the dash that will be drawn by the Pen.  
    Public PropertyGets or sets the Pen's DashStyle.  
    Public PropertyGets the Pen object's miter limit.  
    Public PropertyGets or sets the Pen object's width.  
    Top
    Public Methods
     NameDescription
    Public MethodReturns the type of cap that will be used by the Pen object.  
    Public MethodReturns the type of line join that will be used by the Pen object.  
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also