Printer.DrawStyle 속성
그래픽 메서드의 출력의선스타일을 결정 하는 값을 가져오거나 설정 합니다.
네임스페이스: Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
어셈블리: Microsoft.VisualBasic.PowerPacks.Vs(Microsoft.VisualBasic.PowerPacks.Vs.dll)
구문
‘선언
Public Property DrawStyle As Short
public short DrawStyle { get; set; }
public:
property short DrawStyle {
short get ();
void set (short value);
}
member DrawStyle : int16 with get, set
function get DrawStyle () : short
function set DrawStyle (value : short)
속성 값
형식: System.Int16
Short 을 반환합니다.
설명
경우는 DrawWidth속성설정 되는 값을 1 보다 큰 DrawStyle 생성 단색선설정 1-4 (와 DrawStyle속성값이 변경 되지 않습니다). 경우 DrawWidth 1로 설정 된 DrawStyle 다음 표의 각설정에 대해 설명 하는 효과 만듭니다.
다음 표에 DrawStyleConstants유효한값은 DrawStyle속성입니다.
상수 |
값 |
설명 |
---|---|---|
vbSolid |
0 |
실선 (기본값) |
vbDash |
1 |
대시 |
vbDot |
2 |
점 |
vbDashDot |
3 |
파선-점선 |
vbDashDotDot |
4 |
대시-점-점 |
[!참고]
기능을 수행 하 고 개체의 Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6네임스페이스제공 됩니다 사용에 대 한Visual Basic6.0 업그레이드 도구 사용 하 여 Visual Basic. 이러한 함수와 개체에서 제공하는 대부분의 기능은 .NET Framework의 다른 네임스페이스에서 얻을 수 있는 기능과 동일하므로이러한 함수와 개체는 Visual Basic 6.0 코드 모델이 .NET Framework 구현과 크게 다른 경우에만 사용해야 합니다.
예제
다음 예제에서는 DrawStyle 속성을 설정하는 방법을 보여 줍니다.
Dim Printer As New Printer
Printer.CurrentX = 500
Printer.CurrentY = 500
Printer.DrawStyle = vbDash
Printer.Line(1000, 500)
Printer.EndDoc()
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
참고 항목
참조
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 네임스페이스