Skip to Content
.NET Windows Forms in a Nutshell
book

.NET Windows Forms in a Nutshell

by Ian Griffiths, Matthew Adams
March 2003
Intermediate to advanced
896 pages
32h 35m
English
O'Reilly Media, Inc.
Content preview from .NET Windows Forms in a Nutshell

Name

AdjustableArrowCap

Synopsis

This class, derived from CustomLineCap, provides an arrow-like start- or endcap for a path or line. Unlike the default endcaps, you have control over the shape and size of the arrow.

In addition to functionality of the base class, you can specify whether the arrow is Filled or Hollow, along with the Width and Height of the arrow head itself. In addition, the MiddleInset property allows you to adjust the “barbs” of the arrow.


public sealed class AdjustableArrowCap : CustomLineCap {

// Public Constructors

   public AdjustableArrowCap(float width, float height);

   public AdjustableArrowCap(float width, float height, bool isFilled);

// Public Instance Properties

   public bool Filled{set; get; }

   public float Height{set; get; }

   public float MiddleInset{set; get; }

   public float Width{set; get; }

}

Hierarchy

System.Object System.MarshalByRefObject CustomLineCap(System.ICloneabl, System.IDisposable) AdjustableArrowCap

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt
Pro C# 7: With .NET and .NET Core

Pro C# 7: With .NET and .NET Core

Andrew Troelsen, Philip Japikse

Publisher Resources

ISBN: 0596003382Supplemental ContentCatalog PageErrata