FlowDocumentReader.SelectionOpacity Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the opacity of the SelectionBrush.
public:
property double SelectionOpacity { double get(); void set(double value); };
public double SelectionOpacity { get; set; }
member this.SelectionOpacity : double with get, set
Public Property SelectionOpacity As Double
Property Value
The opacity of the SelectionBrush. The default is 0.4.
Examples
The following example creates a FlowDocumentReader, sets the SelectionBrush property to pink, and sets the SelectionOpacity property to 0.7.
<FlowDocumentReader 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>
</FlowDocumentReader>
Remarks
If you set the SelectionOpacity to 0, the SelectionBrush is transparent and is not visible. If you set the SelectionOpacity to 1.0 or greater, the SelectionBrush is opaque and the selected text is not visible.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기