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
- PropertyBuilder.cs
- EntitySqlException.cs
- RSAPKCS1KeyExchangeFormatter.cs
- GetKeyedHashRequest.cs
- MessagePartProtectionMode.cs
- tabpagecollectioneditor.cs
- SplineQuaternionKeyFrame.cs
- PropertyInfoSet.cs
- TreeNodeStyle.cs
- MouseDevice.cs
- Page.cs
- __Filters.cs
- InfoCardTrace.cs
- CfgParser.cs
- EditableTreeList.cs
- WebContext.cs
- DecoderReplacementFallback.cs
- CustomTypeDescriptor.cs
- SchemaImporterExtensionElementCollection.cs
- ScrollPatternIdentifiers.cs
- WebHttpBinding.cs
- RegionData.cs
- InputLangChangeEvent.cs
- SelectingProviderEventArgs.cs
- ScaleTransform3D.cs
- ClientUtils.cs
- StringValueConverter.cs
- PackageStore.cs
- PolyQuadraticBezierSegment.cs
- PageWrapper.cs
- SqlConnectionPoolProviderInfo.cs
- TextCompositionEventArgs.cs
- TextSelectionProcessor.cs
- Separator.cs
- DetailsViewDesigner.cs
- ConfigXmlAttribute.cs
- StorageFunctionMapping.cs
- _CookieModule.cs
- RichTextBoxConstants.cs
- FactoryId.cs
- NavigationProgressEventArgs.cs
- SortedList.cs
- elementinformation.cs
- AnnotationComponentManager.cs
- JapaneseCalendar.cs
- ScriptReferenceBase.cs
- MessageQueuePermissionAttribute.cs
- AutomationElementCollection.cs
- CharConverter.cs
- localization.cs
- ThreadInterruptedException.cs
- AutomationIdentifier.cs
- InternalPermissions.cs
- WsatEtwTraceListener.cs
- Expression.cs
- ADMembershipProvider.cs
- TimeZone.cs
- BindingBase.cs
- AsyncPostBackErrorEventArgs.cs
- TextInfo.cs
- versioninfo.cs
- EntityDataSourceDataSelectionPanel.cs
- ProcessModuleCollection.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TokenBasedSet.cs
- DoubleCollectionConverter.cs
- RefExpr.cs
- WebHostScriptMappingsInstallComponent.cs
- AccessDataSource.cs
- StylusButton.cs
- MultiPartWriter.cs
- ViewCellRelation.cs
- TextMetrics.cs
- NativeWindow.cs
- XmlHelper.cs
- XmlReflectionImporter.cs
- RestHandlerFactory.cs
- GPRECTF.cs
- ResourceWriter.cs
- InstanceStoreQueryResult.cs
- ViewPort3D.cs
- StringReader.cs
- FindCriteriaApril2005.cs
- EarlyBoundInfo.cs
- SapiGrammar.cs
- ProvidePropertyAttribute.cs
- ObjectMemberMapping.cs
- ModuleConfigurationInfo.cs
- ToolStripDropDownButton.cs
- ComboBoxRenderer.cs
- SafeArchiveContext.cs
- ResetableIterator.cs
- HuffModule.cs
- CrossContextChannel.cs
- FragmentQueryKB.cs
- EncryptedKeyIdentifierClause.cs
- UTF32Encoding.cs
- InfiniteTimeSpanConverter.cs
- _SafeNetHandles.cs
- ServiceCredentialsSecurityTokenManager.cs