TextBoxBase.CaretBrush 속성

정의

텍스트 상자의 캐럿을 칠하는 데 사용되는 브러시를 가져오거나 설정합니다.

public:
 property System::Windows::Media::Brush ^ CaretBrush { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush CaretBrush { get; set; }
member this.CaretBrush : System.Windows.Media.Brush with get, set
Public Property CaretBrush As Brush

속성 값

Brush

텍스트 상자의 캐럿을 칠하는 데 사용되는 브러시입니다.

예제

다음 예제에서는 "일부 텍스트입니다."라는 TextBox 텍스트를 만들고 추가합니다. 이 예제에서는 a의 CaretBrush 속성과 Foreground 속성을 파란색으로 TextBox 설정합니다.

<TextBox SelectionBrush="Red" SelectionOpacity="0.5"
         Foreground="Blue" CaretBrush="Blue">  
  This is some text.
</TextBox>

앞의 예제에서는 다음 그림과 같은 출력을 생성합니다.

CaretBrush가 파란색으로 설정된 TextBox
CaretBrush가 파란색으로 설정된 TextBox

적용 대상