FlowDocumentPageViewer.SelectionOpacity プロパティ

定義

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

プロパティ値

Double

SelectionBrush の不透明度。 既定値は 0.4 です。

次の使用例は、プロパティをFlowDocumentPageViewerSelectionBrushピンク色に設定し、プロパティを SelectionOpacity 0.7 に設定します。

<FlowDocumentPageViewer 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>
</FlowDocumentPageViewer>

注釈

0 に SelectionOpacity 設定すると、透明 SelectionBrush になり、表示されません。 1.0 以上に設定 SelectionOpacity すると、そのテキストは不透明になり、 SelectionBrush 選択したテキストは表示されません。

適用対象