Compartilhar via


FlowDocumentPageViewer.SelectionOpacity Propriedade

Definição

Obtém ou define a opacidade do 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

Valor da propriedade

Double

A opacidade do SelectionBrush. O padrão é 0,4.

Exemplos

O exemplo a seguir cria um FlowDocumentPageViewer, define a SelectionBrush propriedade como rosa e define a SelectionOpacity propriedade como 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>

Comentários

Se você definir como SelectionOpacity 0, o SelectionBrush valor será transparente e não ficará visível. Se você definir como SelectionOpacity 1.0 ou maior, o SelectionBrush texto será opaco e o texto selecionado não estará visível.

Aplica-se a