Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Documents / SelectionHighlightInfo.cs / 1 / SelectionHighlightInfo.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Highlight render properties for selected text. // // History: // 07/01/2004 : benwest - 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 : benwest - 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
- Timer.cs
- JoinSymbol.cs
- SecurityElementBase.cs
- XmlSchemaSimpleContent.cs
- RootBrowserWindow.cs
- ParallelTimeline.cs
- GeneratedCodeAttribute.cs
- SqlSelectClauseBuilder.cs
- XmlMtomWriter.cs
- TitleStyle.cs
- DataGridViewEditingControlShowingEventArgs.cs
- LinkArea.cs
- RadioButtonRenderer.cs
- diagnosticsswitches.cs
- Metadata.cs
- LineInfo.cs
- PanelDesigner.cs
- SyntaxCheck.cs
- WebDescriptionAttribute.cs
- RepeatBehavior.cs
- HttpDictionary.cs
- DesignTimeVisibleAttribute.cs
- StateManagedCollection.cs
- LoginView.cs
- Utils.cs
- ExpressionCopier.cs
- FatalException.cs
- FieldBuilder.cs
- PathSegmentCollection.cs
- RegistrationProxy.cs
- SubordinateTransaction.cs
- SQLDateTimeStorage.cs
- PropertyValueChangedEvent.cs
- SafeThreadHandle.cs
- DataSourceProvider.cs
- XPathDocumentIterator.cs
- SpellCheck.cs
- FlowPosition.cs
- DataGridViewRowCollection.cs
- HyperLinkField.cs
- NavigationProperty.cs
- GetLedgerRequest.cs
- StagingAreaInputItem.cs
- RichTextBoxConstants.cs
- BaseDataBoundControl.cs
- LayoutSettings.cs
- FileCodeGroup.cs
- DiagnosticsConfigurationHandler.cs
- Int16.cs
- _FixedSizeReader.cs
- UdpSocketReceiveManager.cs
- UInt32Storage.cs
- Size3DValueSerializer.cs
- CodeRegionDirective.cs
- safesecurityhelperavalon.cs
- CreateUserWizard.cs
- ECDiffieHellmanPublicKey.cs
- Style.cs
- CardSpaceSelector.cs
- Variant.cs
- ImportContext.cs
- RevocationPoint.cs
- CompareValidator.cs
- XsdCachingReader.cs
- ChangePassword.cs
- SafeCryptHandles.cs
- ClientConfigurationSystem.cs
- Knowncolors.cs
- XamlWrapperReaders.cs
- ProbeDuplexCD1AsyncResult.cs
- ProxyManager.cs
- FocusTracker.cs
- AtlasWeb.Designer.cs
- WorkflowMarkupSerializationManager.cs
- DataSourceNameHandler.cs
- ListViewTableRow.cs
- BitmapEffectDrawingContextWalker.cs
- ValueUtilsSmi.cs
- WebHttpElement.cs
- FixedLineResult.cs
- SessionStateUtil.cs
- FixedTextView.cs
- ResourceContainer.cs
- CryptographicAttribute.cs
- GridView.cs
- TypefaceMetricsCache.cs
- BrushValueSerializer.cs
- TdsParserHelperClasses.cs
- InvokePattern.cs
- InputLanguageManager.cs
- SmtpLoginAuthenticationModule.cs
- HitTestResult.cs
- IDReferencePropertyAttribute.cs
- ConsoleTraceListener.cs
- ThaiBuddhistCalendar.cs
- TextControlDesigner.cs
- ListViewTableRow.cs
- RtfToXamlReader.cs
- SystemNetworkInterface.cs
- InfiniteTimeSpanConverter.cs