• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class CustomLineCap

Represents a custom line cap used to draw the ends of lines.

Inheritance
object
CustomLineCap
AdjustableArrowCap
Implements
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DRIT.Drawing.Pens
Assembly: DRIT.Drawing.dll
Syntax
public class CustomLineCap : IDisposable
Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

Constructors

CustomLineCap(GraphicsPath?, GraphicsPath?, LineCap, float)

Initializes a new CustomLineCap with the specified fill and stroke paths.

Declaration
public CustomLineCap(GraphicsPath? fillPath, GraphicsPath? strokePath, LineCap baseCap = LineCap.Flat, float baseInset = 0)
Parameters
Type Name Description
GraphicsPath fillPath

The path used to fill the cap.

GraphicsPath strokePath

The path used to outline the cap.

LineCap baseCap

The base cap style.

float baseInset

The inset from the end of the line.

Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

Properties

BaseCap

Gets or sets the base cap style.

Declaration
public LineCap BaseCap { get; set; }
Property Value
Type Description
LineCap
Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

BaseInset

Gets or sets the inset from the end of the line.

Declaration
public float BaseInset { get; set; }
Property Value
Type Description
float
Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

FillPath

Gets or sets the path used to fill the cap.

Declaration
public GraphicsPath? FillPath { get; set; }
Property Value
Type Description
GraphicsPath
Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

StrokeJoin

Gets or sets the stroke join style.

Declaration
public LineJoin StrokeJoin { get; set; }
Property Value
Type Description
LineJoin
Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

StrokePath

Gets or sets the path used to outline the cap.

Declaration
public GraphicsPath? StrokePath { get; set; }
Property Value
Type Description
GraphicsPath
Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

WidthScale

Gets or sets the width scale for the cap.

Declaration
public float WidthScale { get; set; }
Property Value
Type Description
float
Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

Methods

CheckDisposed()

Throws an ObjectDisposedException if this custom line cap has been disposed.

Declaration
protected void CheckDisposed()
Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

Clone()

Creates an exact copy of this CustomLineCap.

Declaration
public virtual CustomLineCap Clone()
Returns
Type Description
CustomLineCap

A new CustomLineCap with the same properties.

Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

Dispose()

Releases all resources used by this custom line cap.

Declaration
public void Dispose()
Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

Dispose(bool)

Releases the unmanaged resources used by the custom line cap and optionally releases the managed resources.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

A CustomLineCap can be used to create custom start and end caps for lines drawn with a Pen. The cap can be filled with a path and outlined with another path.

Implements

IDisposable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX