Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PageCache.cs
- SerialPort.cs
- TimeoutException.cs
- DependencyPropertyChangedEventArgs.cs
- ActivitySurrogate.cs
- FieldTemplateUserControl.cs
- SurrogateDataContract.cs
- FixedSOMTableRow.cs
- XsltCompileContext.cs
- DeferredReference.cs
- FilterableAttribute.cs
- SamlAuthorityBinding.cs
- MiniCustomAttributeInfo.cs
- MsmqBindingElementBase.cs
- PeerServiceMessageContracts.cs
- AdornedElementPlaceholder.cs
- RSAPKCS1SignatureDeformatter.cs
- initElementDictionary.cs
- SinglePageViewer.cs
- _LocalDataStoreMgr.cs
- TransactionManagerProxy.cs
- _DynamicWinsockMethods.cs
- Binding.cs
- XmlConvert.cs
- BrowserCapabilitiesCodeGenerator.cs
- StrongNameKeyPair.cs
- FileDialog_Vista_Interop.cs
- SelectedDatesCollection.cs
- ListViewItem.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- X509ChainElement.cs
- ConfigXmlComment.cs
- HttpRequestTraceRecord.cs
- DynamicPropertyReader.cs
- WebPartMinimizeVerb.cs
- FormViewInsertEventArgs.cs
- DocumentPageHost.cs
- OleDragDropHandler.cs
- XmlDataImplementation.cs
- SiteMapProvider.cs
- XmlSortKey.cs
- GcHandle.cs
- TextOutput.cs
- BaseTemplateParser.cs
- TableAdapterManagerGenerator.cs
- HostedTcpTransportManager.cs
- OdbcConnectionString.cs
- StreamGeometry.cs
- GeneratedContractType.cs
- Input.cs
- AccessibleObject.cs
- InfoCardMetadataExchangeClient.cs
- ButtonChrome.cs
- HttpModulesSection.cs
- _ProxyRegBlob.cs
- UserPreferenceChangingEventArgs.cs
- XmlSchemaExporter.cs
- WebBrowserUriTypeConverter.cs
- SetIterators.cs
- PageCodeDomTreeGenerator.cs
- DrawListViewSubItemEventArgs.cs
- DirectoryLocalQuery.cs
- MILUtilities.cs
- CompilationRelaxations.cs
- CacheEntry.cs
- Site.cs
- UnsafeNativeMethodsCLR.cs
- SecurityException.cs
- BamlBinaryReader.cs
- RectangleGeometry.cs
- ManagementBaseObject.cs
- Propagator.cs
- Helper.cs
- FormsAuthenticationTicket.cs
- ProviderUtil.cs
- RelationshipSet.cs
- ToolStripRendererSwitcher.cs
- WindowsTokenRoleProvider.cs
- SecurityHeaderTokenResolver.cs
- baseaxisquery.cs
- CharAnimationBase.cs
- IndexerNameAttribute.cs
- Material.cs
- Storyboard.cs
- RuntimeVariablesExpression.cs
- ParentControlDesigner.cs
- GridViewColumn.cs
- EntityClientCacheKey.cs
- SerialPinChanges.cs
- DbLambda.cs
- DesignerResources.cs
- CodeDomDesignerLoader.cs
- IndicFontClient.cs
- RelatedEnd.cs
- SecurityElementBase.cs
- CqlLexerHelpers.cs
- BitVector32.cs
- FormDocumentDesigner.cs
- SqlRowUpdatingEvent.cs
- Directory.cs