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
- ThreadExceptionDialog.cs
- HwndTarget.cs
- AsymmetricKeyExchangeFormatter.cs
- WebScriptEnablingBehavior.cs
- FloatMinMaxAggregationOperator.cs
- GridViewRow.cs
- TypeDescriptionProviderAttribute.cs
- Random.cs
- TextElement.cs
- Object.cs
- BaseComponentEditor.cs
- GenericXmlSecurityToken.cs
- PerformanceCountersElement.cs
- sqlpipe.cs
- DockAndAnchorLayout.cs
- FilterQuery.cs
- SessionStateContainer.cs
- SerializeAbsoluteContext.cs
- TextEffect.cs
- CodeGen.cs
- HostExecutionContextManager.cs
- SafeNativeMethods.cs
- TypedTableBase.cs
- FormViewUpdatedEventArgs.cs
- SqlDeflator.cs
- Rules.cs
- WebBrowser.cs
- RegistryConfigurationProvider.cs
- HierarchicalDataSourceConverter.cs
- QilUnary.cs
- Span.cs
- AppDomainShutdownMonitor.cs
- PackageProperties.cs
- TreeNode.cs
- DecimalStorage.cs
- GridViewUpdatedEventArgs.cs
- RegexStringValidator.cs
- AnonymousIdentificationModule.cs
- Grammar.cs
- LoginName.cs
- AssemblyUtil.cs
- DataGridColumn.cs
- CommandField.cs
- FormsAuthenticationUser.cs
- SQLDecimalStorage.cs
- RadioButtonRenderer.cs
- TableAdapterManagerHelper.cs
- XmlFormatExtensionPointAttribute.cs
- TransportDefaults.cs
- OutgoingWebResponseContext.cs
- SubpageParaClient.cs
- Vector3DAnimationBase.cs
- WebPartVerb.cs
- SchemaTableColumn.cs
- ChtmlTextWriter.cs
- TableHeaderCell.cs
- SmtpSection.cs
- SchemaHelper.cs
- UidManager.cs
- OrCondition.cs
- Comparer.cs
- TypeElementCollection.cs
- basecomparevalidator.cs
- XmlnsPrefixAttribute.cs
- HwndSubclass.cs
- CompilerGlobalScopeAttribute.cs
- Interlocked.cs
- HttpRuntimeSection.cs
- GZipDecoder.cs
- SecureStringHasher.cs
- RelAssertionDirectKeyIdentifierClause.cs
- DropShadowEffect.cs
- ParsedAttributeCollection.cs
- AspCompat.cs
- RawAppCommandInputReport.cs
- ToolStripDropDownItem.cs
- TreeNodeCollection.cs
- DbConnectionPoolIdentity.cs
- C14NUtil.cs
- XmlWellformedWriter.cs
- SymbolPair.cs
- TextClipboardData.cs
- TransportBindingElement.cs
- DataSourceXmlAttributeAttribute.cs
- AnonymousIdentificationModule.cs
- MasterPageCodeDomTreeGenerator.cs
- GenericTransactionFlowAttribute.cs
- ColumnMapTranslator.cs
- BuildProvidersCompiler.cs
- Utils.cs
- LazyTextWriterCreator.cs
- XPathNodeHelper.cs
- TableLayoutSettings.cs
- ErrorEventArgs.cs
- Page.cs
- HttpProtocolReflector.cs
- XPathNavigatorKeyComparer.cs
- AlignmentXValidation.cs
- MeshGeometry3D.cs
- CollectionEditVerbManager.cs