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
- EarlyBoundInfo.cs
- DoubleAnimationUsingPath.cs
- MailWebEventProvider.cs
- ProcessThreadCollection.cs
- Matrix.cs
- TimelineGroup.cs
- HtmlInputReset.cs
- MSAAWinEventWrap.cs
- QueueAccessMode.cs
- TypeLibConverter.cs
- ScrollPatternIdentifiers.cs
- peernodeimplementation.cs
- TiffBitmapEncoder.cs
- CloudCollection.cs
- ComboBox.cs
- CustomAssemblyResolver.cs
- DesignTimeHTMLTextWriter.cs
- PseudoWebRequest.cs
- Rules.cs
- DataServiceQueryContinuation.cs
- SubclassTypeValidatorAttribute.cs
- OleDbRowUpdatingEvent.cs
- UriSection.cs
- EventsTab.cs
- UpdateProgress.cs
- SamlConditions.cs
- httpstaticobjectscollection.cs
- LogExtentCollection.cs
- PolicyManager.cs
- HtmlMobileTextWriter.cs
- TrackingProfileSerializer.cs
- GenericsInstances.cs
- PtsHost.cs
- ControlBuilder.cs
- MetaTableHelper.cs
- NativeRecognizer.cs
- TypeUsage.cs
- EdmComplexPropertyAttribute.cs
- HtmlInputText.cs
- SystemDiagnosticsSection.cs
- SafeNativeMethods.cs
- Matrix3DValueSerializer.cs
- GeneratedContractType.cs
- DataControlField.cs
- Version.cs
- TcpTransportSecurityElement.cs
- PropertyGridCommands.cs
- PointCollection.cs
- LineGeometry.cs
- CopyEncoder.cs
- Hex.cs
- ZipIORawDataFileBlock.cs
- GenericQueueSurrogate.cs
- RequestQueryProcessor.cs
- ComponentCollection.cs
- WinOEToolBoxItem.cs
- AssemblyNameProxy.cs
- SymmetricAlgorithm.cs
- Site.cs
- DPCustomTypeDescriptor.cs
- ParameterElement.cs
- EmptyQuery.cs
- ByteStorage.cs
- XmlWriterDelegator.cs
- RowToFieldTransformer.cs
- MimeTextImporter.cs
- serverconfig.cs
- RowTypeElement.cs
- DocumentOrderQuery.cs
- TemplateControlParser.cs
- MenuBase.cs
- DynamicRenderer.cs
- DataControlFieldCell.cs
- PaginationProgressEventArgs.cs
- SimpleFieldTemplateUserControl.cs
- RowSpanVector.cs
- TransformerConfigurationWizardBase.cs
- MatrixAnimationBase.cs
- HttpValueCollection.cs
- COM2IProvidePropertyBuilderHandler.cs
- EntityFunctions.cs
- SymbolDocumentInfo.cs
- QuaternionAnimation.cs
- RubberbandSelector.cs
- SafeReversePInvokeHandle.cs
- WebPartZone.cs
- IERequestCache.cs
- SelectorAutomationPeer.cs
- Assembly.cs
- DataRecord.cs
- TableFieldsEditor.cs
- DrawingContextDrawingContextWalker.cs
- MonitorWrapper.cs
- XMLSyntaxException.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- ListViewSortEventArgs.cs
- OdbcConnectionString.cs
- StorageEndPropertyMapping.cs
- Transform3DGroup.cs
- TextShapeableCharacters.cs