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
- QueryStringParameter.cs
- BackStopAuthenticationModule.cs
- PropertyIDSet.cs
- OleDbEnumerator.cs
- SendMailErrorEventArgs.cs
- HandlerFactoryWrapper.cs
- OlePropertyStructs.cs
- AnimationStorage.cs
- ClientFormsIdentity.cs
- Transform3D.cs
- XPathMultyIterator.cs
- ExcCanonicalXml.cs
- SystemWebCachingSectionGroup.cs
- ClientConfigurationHost.cs
- MatrixTransform.cs
- MultiplexingDispatchMessageFormatter.cs
- TextWriter.cs
- TriggerActionCollection.cs
- AesManaged.cs
- ModifierKeysConverter.cs
- SafeHGlobalHandleCritical.cs
- SplineKeyFrames.cs
- ConfigXmlAttribute.cs
- CancelEventArgs.cs
- DataDocumentXPathNavigator.cs
- DelegatingTypeDescriptionProvider.cs
- TableParagraph.cs
- ConstrainedDataObject.cs
- AuthenticationServiceManager.cs
- RequestQueryProcessor.cs
- Win32Exception.cs
- MemberNameValidator.cs
- WhileDesigner.xaml.cs
- SerialStream.cs
- PropertyTabChangedEvent.cs
- VersionedStreamOwner.cs
- AdapterDictionary.cs
- Rule.cs
- IteratorFilter.cs
- UnsafeNativeMethods.cs
- SqlGatherProducedAliases.cs
- ThreadStaticAttribute.cs
- CustomAttributeSerializer.cs
- XmlSchemaIdentityConstraint.cs
- ClientScriptManager.cs
- DBDataPermissionAttribute.cs
- CqlQuery.cs
- ILGen.cs
- ObjectDataSourceSelectingEventArgs.cs
- TypeDependencyAttribute.cs
- IssuanceLicense.cs
- AsyncPostBackTrigger.cs
- HTTPRemotingHandler.cs
- DesignTableCollection.cs
- Deflater.cs
- DesignerActionPropertyItem.cs
- GregorianCalendarHelper.cs
- MaxSessionCountExceededException.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- FixedSOMGroup.cs
- XmlnsCache.cs
- HtmlTableRowCollection.cs
- TimeStampChecker.cs
- ClassGenerator.cs
- DecimalAnimationBase.cs
- EntityTemplateFactory.cs
- HtmlTernaryTree.cs
- DateTime.cs
- WindowsIdentity.cs
- XmlSecureResolver.cs
- URI.cs
- TypeUtil.cs
- Matrix3DConverter.cs
- TokenBasedSetEnumerator.cs
- UpdateCommand.cs
- XmlAttributes.cs
- ViewValidator.cs
- IIS7WorkerRequest.cs
- IxmlLineInfo.cs
- MouseOverProperty.cs
- CapabilitiesSection.cs
- WmlSelectionListAdapter.cs
- InputProcessorProfilesLoader.cs
- ListChangedEventArgs.cs
- DBCommandBuilder.cs
- BitArray.cs
- TypefaceCollection.cs
- RichTextBox.cs
- TargetFrameworkUtil.cs
- IListConverters.cs
- TextTreeRootNode.cs
- XmlSerializerSection.cs
- DeviceFiltersSection.cs
- sqlmetadatafactory.cs
- XPathArrayIterator.cs
- DocumentPaginator.cs
- MulticastDelegate.cs
- StdValidatorsAndConverters.cs
- FormatConvertedBitmap.cs
- BufferManager.cs