Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] - 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
- PeerHelpers.cs
- XmlTextReader.cs
- MessageSmuggler.cs
- loginstatus.cs
- RequiredFieldValidator.cs
- CheckBoxList.cs
- MemoryStream.cs
- HttpCapabilitiesSectionHandler.cs
- SslStream.cs
- MediaPlayerState.cs
- TextTreeTextElementNode.cs
- ContactManager.cs
- OptimisticConcurrencyException.cs
- DateTimeUtil.cs
- Html32TextWriter.cs
- TokenBasedSetEnumerator.cs
- StateDesigner.CommentLayoutGlyph.cs
- MethodBuilderInstantiation.cs
- TextSerializer.cs
- PointCollection.cs
- SafeThemeHandle.cs
- AnnotationDocumentPaginator.cs
- SvcMapFile.cs
- SmtpFailedRecipientsException.cs
- Graph.cs
- ComboBoxRenderer.cs
- CompilerCollection.cs
- ValidationHelpers.cs
- Literal.cs
- CodeMemberField.cs
- DirectoryNotFoundException.cs
- UserControlCodeDomTreeGenerator.cs
- ErrorFormatterPage.cs
- HttpModuleCollection.cs
- tooltip.cs
- InputReferenceExpression.cs
- ScrollBarRenderer.cs
- EntityParameterCollection.cs
- _SSPISessionCache.cs
- QilStrConcat.cs
- WebCategoryAttribute.cs
- TextContainerChangedEventArgs.cs
- GlobalAllocSafeHandle.cs
- MetadataResolver.cs
- TreeNodeClickEventArgs.cs
- SqlParameter.cs
- ResXResourceSet.cs
- _SslState.cs
- TypeUtil.cs
- TypeInfo.cs
- WindowsSecurityToken.cs
- TableAutomationPeer.cs
- PropertyMetadata.cs
- KeyValuePairs.cs
- SharedPersonalizationStateInfo.cs
- ObjectResult.cs
- Int16AnimationBase.cs
- HtmlInputPassword.cs
- Attributes.cs
- FunctionQuery.cs
- ObjectStateManager.cs
- ConsumerConnectionPointCollection.cs
- DefinitionUpdate.cs
- DeploymentExceptionMapper.cs
- HtmlAnchor.cs
- FilterException.cs
- TextStore.cs
- ComplexTypeEmitter.cs
- FrameworkElementAutomationPeer.cs
- OleDbInfoMessageEvent.cs
- Dynamic.cs
- StylusPoint.cs
- ToolStripComboBox.cs
- BrushConverter.cs
- NaturalLanguageHyphenator.cs
- ConnectionStringsExpressionBuilder.cs
- AllMembershipCondition.cs
- HandlerBase.cs
- TagPrefixCollection.cs
- URI.cs
- WebMessageEncodingElement.cs
- FormatterConverter.cs
- WindowsTreeView.cs
- SemanticTag.cs
- InitializeCorrelation.cs
- XamlTemplateSerializer.cs
- ModuleConfigurationInfo.cs
- Int16Storage.cs
- ControlPropertyNameConverter.cs
- ExpandableObjectConverter.cs
- DataDocumentXPathNavigator.cs
- IconBitmapDecoder.cs
- ServiceParser.cs
- PrimitiveType.cs
- RichTextBoxConstants.cs
- HyperLinkStyle.cs
- HttpCachePolicyElement.cs
- ButtonChrome.cs
- DurableInstance.cs
- UnSafeCharBuffer.cs