DrawingAttributes.Height 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Stroke를 그리는 데 사용된 스타일러스의 높이를 가져오거나 설정합니다.
public:
property double Height { double get(); void set(double value); };
public double Height { get; set; }
member this.Height : double with get, set
Public Property Height As Double
속성 값
Stroke를 그리는 데 사용된 스타일러스의 높이를 나타내는 값입니다.
예외
예제
다음 예제에서는 설정 하는 방법에 설명 합니다 Height 속성입니다. 가정 애플리케이션에 InkCanvas 호출 inkCanvas1
, 두 개의 DrawingAttributes 라는 개체 inkDA
및 highlighterDA
합니다. 전체 예제를 참조 하세요.를 DrawingAttributes 클래스 개요입니다.
// Set up the DrawingAttributes for the pen.
inkDA = new DrawingAttributes();
inkDA.Color = Colors.SpringGreen;
inkDA.Height = 5;
inkDA.Width = 5;
inkDA.FitToCurve = false;
inkDA.StylusTipTransform = new Matrix(1, 0, 0, 5, 0, 0);
// Set up the DrawingAttributes for the highlighter.
highlighterDA = new DrawingAttributes();
highlighterDA.Color = Colors.Orchid;
highlighterDA.IsHighlighter = true;
highlighterDA.IgnorePressure = true;
highlighterDA.StylusTip = StylusTip.Rectangle;
highlighterDA.Height = 30;
highlighterDA.Width = 10;
inkCanvas1.DefaultDrawingAttributes = inkDA;
' Set up the DrawingAttributes for the pen.
inkDA = New Ink.DrawingAttributes()
With inkDA
.Color = Colors.SpringGreen
.Height = 5
.Width = 5
.FitToCurve = True
.StylusTipTransform = New Matrix(1, 0, 0, 1, 20, 0)
End With
' Set up the DrawingAttributes for the highlighter.
highlighterDA = New Ink.DrawingAttributes()
With highlighterDA
.Color = Colors.Orchid
.IsHighlighter = True
.IgnorePressure = True
.StylusTip = StylusTip.Rectangle
.Height = 30
.Width = 10
End With
inkCanvas1.DefaultDrawingAttributes = inkDA
설명
다음 요소 높이 너비에 영향을 줄을 Stroke 렌더링 될 때, 있지만 값이 아니라는 Height 속성입니다.
압력 스타일러스를 적용할 때를 Stroke 그려집니다.
StylusTipTransform 속성 값
설정 하는 경우는 Height 속성 0 디바이스 독립적 픽셀 (DIP)를 2 DIP로 변경 됩니다.
XAML 텍스트 사용
이 속성 XAML에서 일반적으로 사용 되지 않습니다.
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기