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
- GridViewRowCollection.cs
- DateTimeUtil.cs
- DocumentViewer.cs
- Helpers.cs
- SafeRightsManagementSessionHandle.cs
- SqlTypesSchemaImporter.cs
- QilLoop.cs
- Keywords.cs
- XamlBrushSerializer.cs
- LabelLiteral.cs
- NativeMethods.cs
- InvalidFilterCriteriaException.cs
- Separator.cs
- XmlIncludeAttribute.cs
- StateElement.cs
- MatrixUtil.cs
- HttpStaticObjectsCollectionWrapper.cs
- GroupBoxRenderer.cs
- BinaryOperationBinder.cs
- StaticResourceExtension.cs
- CodeDomSerializerException.cs
- HttpApplicationStateBase.cs
- MetadataException.cs
- QuaternionAnimation.cs
- DictionaryTraceRecord.cs
- HandleTable.cs
- ChangesetResponse.cs
- MouseBinding.cs
- CodeIdentifiers.cs
- ProcessHostMapPath.cs
- TypeUnloadedException.cs
- HwndSource.cs
- SessionPageStatePersister.cs
- ValueSerializer.cs
- GenericsInstances.cs
- SoapFault.cs
- BrushConverter.cs
- Pkcs7Recipient.cs
- MoveSizeWinEventHandler.cs
- DbConnectionPoolGroup.cs
- RuleConditionDialog.Designer.cs
- TableLayoutPanelDesigner.cs
- FrameworkContentElement.cs
- TreeNodeMouseHoverEvent.cs
- BamlCollectionHolder.cs
- TargetFrameworkUtil.cs
- EntityDataSourceViewSchema.cs
- FunctionQuery.cs
- UnmanagedMemoryStreamWrapper.cs
- XmlMembersMapping.cs
- printdlgexmarshaler.cs
- ResourceExpressionBuilder.cs
- XPathPatternBuilder.cs
- WorkflowMarkupSerializer.cs
- SeparatorAutomationPeer.cs
- RelatedImageListAttribute.cs
- SecurityState.cs
- IPGlobalProperties.cs
- CommonGetThemePartSize.cs
- SymbolEqualComparer.cs
- CompilationLock.cs
- UrlPath.cs
- CardSpacePolicyElement.cs
- ResourceReader.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- LinqDataSourceHelper.cs
- TextBlockAutomationPeer.cs
- SqlDependencyListener.cs
- NamespaceInfo.cs
- CssStyleCollection.cs
- LayoutEngine.cs
- SectionInput.cs
- TextBoxBase.cs
- ConfigXmlElement.cs
- FormsAuthenticationModule.cs
- CodeBlockBuilder.cs
- PointConverter.cs
- IgnoreSectionHandler.cs
- X509Certificate2.cs
- UnhandledExceptionEventArgs.cs
- LinearGradientBrush.cs
- BlurEffect.cs
- XmlTypeAttribute.cs
- DoubleLink.cs
- DbProviderServices.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SystemException.cs
- NativeMethods.cs
- FocusChangedEventArgs.cs
- TabControl.cs
- TreeNodeBinding.cs
- ILGenerator.cs
- Listen.cs
- ProfileEventArgs.cs
- GridViewItemAutomationPeer.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- PreviewControlDesigner.cs
- BrowserDefinitionCollection.cs
- SignatureGenerator.cs
- Messages.cs