Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / SelectionHighlightInfo.cs / 1305600 / SelectionHighlightInfo.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Highlight render properties for selected text. // // History: // 07/01/2004 : [....] - Created // //--------------------------------------------------------------------------- using System.Windows.Media; namespace System.Windows.Documents { ////// Highlight render properties for selected text. /// internal static class SelectionHighlightInfo { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Static constructor. static SelectionHighlightInfo() { _objectMaskBrush = new SolidColorBrush(SystemColors.HighlightColor); _objectMaskBrush.Opacity = 0.5; _objectMaskBrush.Freeze(); } #endregion Constructors //------------------------------------------------------ // // Internal Properties // //----------------------------------------------------- #region Internal Properties ////// Brush used to override selected text's ForegroundProperty. /// internal static Brush ForegroundBrush { get { return SystemColors.HighlightTextBrush; } } ////// Brush used to override selected text's BackgroundProperty. /// internal static Brush BackgroundBrush { get { return SystemColors.HighlightBrush; } } ////// Brush used to highlight selected embedded objects. /// 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Highlight render properties for selected text. // // History: // 07/01/2004 : [....] - Created // //--------------------------------------------------------------------------- using System.Windows.Media; namespace System.Windows.Documents { ////// Highlight render properties for selected text. /// internal static class SelectionHighlightInfo { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Static constructor. static SelectionHighlightInfo() { _objectMaskBrush = new SolidColorBrush(SystemColors.HighlightColor); _objectMaskBrush.Opacity = 0.5; _objectMaskBrush.Freeze(); } #endregion Constructors //------------------------------------------------------ // // Internal Properties // //----------------------------------------------------- #region Internal Properties ////// Brush used to override selected text's ForegroundProperty. /// internal static Brush ForegroundBrush { get { return SystemColors.HighlightTextBrush; } } ////// Brush used to override selected text's BackgroundProperty. /// internal static Brush BackgroundBrush { get { return SystemColors.HighlightBrush; } } ////// Brush used to highlight selected embedded objects. /// 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ErrorFormatterPage.cs
- HtmlPanelAdapter.cs
- SelectionEditingBehavior.cs
- Rect.cs
- RectangleF.cs
- PeerNodeTraceRecord.cs
- SQLDateTime.cs
- GroupQuery.cs
- ListControlConvertEventArgs.cs
- WindowHelperService.cs
- BooleanProjectedSlot.cs
- Win32KeyboardDevice.cs
- DataContractJsonSerializer.cs
- DbProviderFactoriesConfigurationHandler.cs
- OutputCacheSettings.cs
- UserNamePasswordValidator.cs
- CodePageUtils.cs
- PartialTrustHelpers.cs
- LinkedList.cs
- COM2PropertyDescriptor.cs
- XmlTypeAttribute.cs
- XslAstAnalyzer.cs
- AppSettingsExpressionBuilder.cs
- DeviceContext2.cs
- LinearGradientBrush.cs
- SafeWaitHandle.cs
- SecurityPermission.cs
- HttpCookiesSection.cs
- X509ChainPolicy.cs
- ImageSource.cs
- XmlNullResolver.cs
- SendActivityDesignerTheme.cs
- SessionEndingCancelEventArgs.cs
- SQLSingleStorage.cs
- GridViewColumnCollection.cs
- MenuCommand.cs
- CapacityStreamGeometryContext.cs
- BitmapSource.cs
- ChineseLunisolarCalendar.cs
- BinaryConverter.cs
- _NativeSSPI.cs
- NameValueFileSectionHandler.cs
- RulePatternOps.cs
- OleDbConnectionFactory.cs
- RegexMatch.cs
- IsolatedStorageFile.cs
- CharacterString.cs
- CellLabel.cs
- ExpressionBuilderCollection.cs
- ChannelEndpointElementCollection.cs
- CommandField.cs
- RowToParametersTransformer.cs
- PathParser.cs
- LoginView.cs
- VectorAnimation.cs
- StopStoryboard.cs
- TreeChangeInfo.cs
- PlatformNotSupportedException.cs
- AssemblyCacheEntry.cs
- SynchronizationContext.cs
- ProcessHostServerConfig.cs
- GenericPrincipal.cs
- NullableBoolConverter.cs
- BuilderElements.cs
- ForceCopyBuildProvider.cs
- Error.cs
- DispatcherProcessingDisabled.cs
- SqlDependencyListener.cs
- StringConverter.cs
- DataGridDesigner.cs
- Win32MouseDevice.cs
- RangeValuePattern.cs
- ActiveXHost.cs
- WorkflowRuntimeElement.cs
- XmlHelper.cs
- NonVisualControlAttribute.cs
- XsltSettings.cs
- CompoundFileIOPermission.cs
- XamlParser.cs
- PackagingUtilities.cs
- DoubleConverter.cs
- ProfileProvider.cs
- HideDisabledControlAdapter.cs
- Selection.cs
- WebPartConnectionsCancelVerb.cs
- FileAuthorizationModule.cs
- DataGridViewHitTestInfo.cs
- BamlRecords.cs
- DocumentsTrace.cs
- HasCopySemanticsAttribute.cs
- DecimalAverageAggregationOperator.cs
- DataGridTextBox.cs
- HwndSubclass.cs
- ExecutedRoutedEventArgs.cs
- TextWriter.cs
- DefaultValueTypeConverter.cs
- DataList.cs
- DataObjectSettingDataEventArgs.cs
- DoubleAnimationBase.cs
- Quaternion.cs