AdjustableArrowCap 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 너비와 높이를 AdjustableArrowCap 사용하여 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| AdjustableArrowCap(Single, Single) |
지정된 너비와 높이를 AdjustableArrowCap 사용하여 클래스의 새 인스턴스를 초기화합니다. 이 생성자를 사용하여 만든 화살표 끝 대문자는 항상 채워집니다. |
| AdjustableArrowCap(Single, Single, Boolean) |
지정된 너비, 높이 및 채우기 속성을 사용하여 클래스의 AdjustableArrowCap 새 인스턴스를 초기화합니다. 화살표 끝 캡이 채워지는지 여부는 매개 변수에 전달된 인수에 |
AdjustableArrowCap(Single, Single)
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
지정된 너비와 높이를 AdjustableArrowCap 사용하여 클래스의 새 인스턴스를 초기화합니다. 이 생성자를 사용하여 만든 화살표 끝 대문자는 항상 채워집니다.
public:
AdjustableArrowCap(float width, float height);
public AdjustableArrowCap(float width, float height);
new System.Drawing.Drawing2D.AdjustableArrowCap : single * single -> System.Drawing.Drawing2D.AdjustableArrowCap
Public Sub New (width As Single, height As Single)
매개 변수
- width
- Single
화살표의 너비입니다.
- height
- Single
화살표의 높이입니다.
예제
다음 예제는 Windows Forms 사용하도록 설계되었으며 PaintEventArgs 이벤트 개체인 eOnPaint 필요합니다. 코드는 다음 작업을 수행합니다.
라는 AdjustableArrowCap개체를
myArrow만듭니다.라는 개체를 Pen 만들고 해당
capPen개체와 CustomStartCap 속성을 같게 CustomEndCapmyArrow설정합니다.이 메서드를 DrawLine 사용하여 두 개의 화살표로 덮인 선을 표시합니다.
public:
void ConstructAdjArrowCap1( PaintEventArgs^ e )
{
AdjustableArrowCap^ myArrow = gcnew AdjustableArrowCap( 6,6 );
Pen^ capPen = gcnew Pen( Color::Black );
capPen->CustomStartCap = myArrow;
capPen->CustomEndCap = myArrow;
e->Graphics->DrawLine( capPen, 50, 50, 200, 50 );
}
public void ConstructAdjArrowCap1(PaintEventArgs e)
{
AdjustableArrowCap myArrow = new AdjustableArrowCap(6, 6);
Pen capPen = new Pen(Color.Black);
capPen.CustomStartCap = myArrow;
capPen.CustomEndCap = myArrow;
e.Graphics.DrawLine(capPen, 50, 50, 200, 50);
}
Public Sub ConstructAdjArrowCap1(ByVal e As PaintEventArgs)
Dim myArrow As New AdjustableArrowCap(6, 6)
Dim customArrow As CustomLineCap = myArrow
Dim capPen As New Pen(Color.Black)
capPen.CustomStartCap = myArrow
capPen.CustomEndCap = myArrow
e.Graphics.DrawLine(capPen, 50, 50, 200, 50)
End Sub
적용 대상
AdjustableArrowCap(Single, Single, Boolean)
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
- Source:
- AdjustableArrowCap.cs
지정된 너비, 높이 및 채우기 속성을 사용하여 클래스의 AdjustableArrowCap 새 인스턴스를 초기화합니다. 화살표 끝 캡이 채워지는지 여부는 매개 변수에 전달된 인수에 isFilled 따라 달라집니다.
public:
AdjustableArrowCap(float width, float height, bool isFilled);
public AdjustableArrowCap(float width, float height, bool isFilled);
new System.Drawing.Drawing2D.AdjustableArrowCap : single * single * bool -> System.Drawing.Drawing2D.AdjustableArrowCap
Public Sub New (width As Single, height As Single, isFilled As Boolean)
매개 변수
- width
- Single
화살표의 너비입니다.
- height
- Single
화살표의 높이입니다.
- isFilled
- Boolean
true화살표 뚜껑을 채우려면 그렇지 않으면 . false
예제
다음 예제는 Windows Forms 사용하도록 설계되었으며 PaintEventArgs 이벤트 개체인 eOnPaint 필요합니다. 코드는 다음 작업을 수행합니다.
라는 AdjustableArrowCap개체를
myArrow만듭니다.라는 개체를 Pen 만들고 해당
capPen개체와 CustomStartCap 속성을 같게 CustomEndCapmyArrow설정합니다.이 메서드를 DrawLine 사용하여 두 개의 화살표로 덮인 선을 표시합니다.
public:
void ConstructAdjArrowCap2( PaintEventArgs^ e )
{
AdjustableArrowCap^ myArrow = gcnew AdjustableArrowCap( 6,6,false );
Pen^ capPen = gcnew Pen( Color::Black );
capPen->CustomStartCap = myArrow;
capPen->CustomEndCap = myArrow;
e->Graphics->DrawLine( capPen, 50, 50, 200, 50 );
}
public void ConstructAdjArrowCap2(PaintEventArgs e)
{
AdjustableArrowCap myArrow = new AdjustableArrowCap(6, 6, false);
Pen capPen = new Pen(Color.Black);
capPen.CustomStartCap = myArrow;
capPen.CustomEndCap = myArrow;
e.Graphics.DrawLine(capPen, 50, 50, 200, 50);
}
Public Sub ConstructAdjArrowCap2(ByVal e As PaintEventArgs)
Dim myArrow As New AdjustableArrowCap(6, 6, False)
Dim customArrow As CustomLineCap = myArrow
Dim capPen As New Pen(Color.Black)
capPen.CustomStartCap = myArrow
capPen.CustomEndCap = myArrow
e.Graphics.DrawLine(capPen, 50, 50, 200, 50)
End Sub