| File: System\windows\Documents\SelectionHighlightInfo.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj (PresentationFramework) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // Description: Highlight render properties for selected text. // using System.Windows.Media; namespace System.Windows.Documents { /// <summary> /// Highlight render properties for selected text. /// </summary> internal static class SelectionHighlightInfo { //------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors // Static constructor. static SelectionHighlightInfo() { _objectMaskBrush = new SolidColorBrush(SystemColors.HighlightColor) { Opacity = 0.5 }; _objectMaskBrush.Freeze(); } #endregion Constructors //------------------------------------------------------ // // Internal Properties // //------------------------------------------------------ #region Internal Properties /// <summary> /// Brush used to override selected text's ForegroundProperty. /// </summary> internal static Brush ForegroundBrush { get { return SystemColors.HighlightTextBrush; } } /// <summary> /// Brush used to override selected text's BackgroundProperty. /// </summary> internal static Brush BackgroundBrush { get { return SystemColors.HighlightBrush; } } /// <summary> /// Brush used to highlight selected embedded objects. /// </summary> internal static Brush ObjectMaskBrush { get { return _objectMaskBrush; } } #endregion Internal Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // Brush used to highlight selected embedded objects. private static readonly Brush _objectMaskBrush; #endregion Private Fields } }