Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TimeIntervalCollection.cs
- RowType.cs
- MethodBuilderInstantiation.cs
- XmlChoiceIdentifierAttribute.cs
- _DigestClient.cs
- VisualStyleInformation.cs
- CodeRemoveEventStatement.cs
- Mapping.cs
- OrderByBuilder.cs
- NullToBooleanConverter.cs
- AuthenticationModuleElement.cs
- CompilationUtil.cs
- HMACRIPEMD160.cs
- FixedPageAutomationPeer.cs
- SlipBehavior.cs
- DataServiceSaveChangesEventArgs.cs
- Int32Rect.cs
- NativeMethods.cs
- XPathNode.cs
- SmtpReplyReaderFactory.cs
- BamlCollectionHolder.cs
- UrlAuthorizationModule.cs
- Pkcs7Recipient.cs
- AssemblyNameProxy.cs
- AssemblyAttributesGoHere.cs
- XmlProcessingInstruction.cs
- ListViewDeleteEventArgs.cs
- datacache.cs
- WebHostScriptMappingsInstallComponent.cs
- RecognizedAudio.cs
- RijndaelManagedTransform.cs
- CodeAttributeArgument.cs
- ProfileEventArgs.cs
- Missing.cs
- QualifiedCellIdBoolean.cs
- ContextDataSource.cs
- SmiEventSink_Default.cs
- DataException.cs
- UdpContractFilterBehavior.cs
- RecognizedWordUnit.cs
- CalendarModeChangedEventArgs.cs
- ComplexTypeEmitter.cs
- PageSettings.cs
- HwndSubclass.cs
- ComponentChangedEvent.cs
- AgileSafeNativeMemoryHandle.cs
- parserscommon.cs
- XmlKeywords.cs
- ResourceReferenceExpressionConverter.cs
- DESCryptoServiceProvider.cs
- FullTrustAssembliesSection.cs
- ListViewItem.cs
- MultiPageTextView.cs
- DataGridViewColumnStateChangedEventArgs.cs
- Popup.cs
- SingleObjectCollection.cs
- ImageFormatConverter.cs
- DataService.cs
- DbInsertCommandTree.cs
- OpenTypeLayout.cs
- TextAction.cs
- _ScatterGatherBuffers.cs
- DrawingBrush.cs
- SchemaDeclBase.cs
- TableLayoutCellPaintEventArgs.cs
- Helpers.cs
- CheckableControlBaseAdapter.cs
- RoutedEventHandlerInfo.cs
- TransformerConfigurationWizardBase.cs
- mactripleDES.cs
- BaseAddressPrefixFilterElement.cs
- RuntimeArgumentHandle.cs
- StreamResourceInfo.cs
- Path.cs
- ConditionalAttribute.cs
- XmlSchemaValidationException.cs
- PropertyNames.cs
- ReplyChannel.cs
- ContentType.cs
- ColumnResizeAdorner.cs
- OdbcDataReader.cs
- ApplicationHost.cs
- TextParagraphProperties.cs
- ClientApiGenerator.cs
- XmlIterators.cs
- XmlSerializerAssemblyAttribute.cs
- CatalogPartCollection.cs
- ListParaClient.cs
- OleDbParameter.cs
- OleDbParameterCollection.cs
- BamlRecordReader.cs
- FlowLayoutSettings.cs
- GridViewPageEventArgs.cs
- DateTimeFormatInfoScanner.cs
- LinqDataSourceContextEventArgs.cs
- CompoundFileDeflateTransform.cs
- FileFormatException.cs
- OdbcHandle.cs
- SingleStorage.cs
- ByteStack.cs