FlowDocumentScrollViewer.SelectionOpacity Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
öğesinin opaklığını SelectionBrushalır veya ayarlar.
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
Özellik Değeri
'nin SelectionBrushopaklığı. Varsayılan değer 0,4'dür.
Örnekler
Aşağıdaki örnek bir FlowDocumentScrollVieweroluşturur, özelliğini pembe olarak ayarlar SelectionBrush ve özelliğini 0,7 olarak ayarlar 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>
Açıklamalar
değerini 0 olarak ayarlarsanız SelectionOpacity , SelectionBrush saydamdır ve görünür değildir. değerini 1,0 olarak ayarlarsanız SelectionOpacity , SelectionBrush opak olur ve seçili metin görünmez.
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin