Search Results for

    Show / Hide Table of Contents

    TGdipUIPen.TGdipUIPen Constructor

    Creates a new UIPen which encapsulates an existing GDI+ Pen. Note that if you are encapsulating a pen from Pens.Color class, you need to pass false in aNeedsDispose, since this class shouldn't dispose the pen when disposing the class.

    Syntax

    Namespace: FlexCel.Draw

    public TGdipUIPen(Pen aPen, Boolean aNeedsDispose)

    Parameters

    <-> Parameter Type Description
    aPen Pen GDI+ pen which will define this pen.
    aNeedsDispose Boolean If true, this class will own the GDI+ pen, and dispose it when you dispose the class. If false, the GDI+ pen will not be disposed when disposing this class.
    If you are using a pen from Pens class, you should set this to false. We don't want to dispose system pens.

    See also

    • TGdipUIPen
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com