다음을 통해 공유


FlowDocumentScrollViewer.SelectionBrush 속성

정의

선택된 텍스트를 강조 표시하는 브러시를 가져오거나 설정합니다.

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

속성 값

Brush

선택된 텍스트를 강조 표시하는 브러시입니다.

예제

다음 예제에서는 속성을 FlowDocumentScrollViewer만들고, 속성을 분홍색으로 설정하고 SelectionBrush , 속성을 0.7로 설정합니다 SelectionOpacity .

<FlowDocumentScrollViewer SelectionBrush="Pink" SelectionOpacity="0.7">
    <FlowDocument>
        <Paragraph>
            <Bold>Neptune</Bold> (planet), major planet in the solar system, eighth planet
from the Sun and fourth largest in diameter.  Neptune maintains an almost constant
distance, about 4,490 million km (about 2,790 million mi), from the Sun.  Neptune
revolves outside the orbit of Uranus and for most of its orbit moves inside the
elliptical path of the outermost planet Pluto (see Solar System). Every 248 years,
Pluto’s elliptical orbit brings the planet inside Neptune’s nearly circular orbit
for about 20 years, temporarily making Neptune the farthest planet from the Sun.
The last time Pluto’s orbit brought it inside Neptune’s orbit was in 1979. In
1999 Pluto’s orbit carried it back outside Neptune’s orbit.
        </Paragraph>
    </FlowDocument>
</FlowDocumentScrollViewer>

설명

및 속성을 설정하여 선택한 텍스트를 강조 표시하는 브러시를 FlowDocumentScrollViewer SelectionBrush SelectionOpacity 지정할 수 있습니다.

적용 대상