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
- RangeBaseAutomationPeer.cs
- ProviderConnectionPoint.cs
- TextWriter.cs
- Properties.cs
- DateTimeValueSerializerContext.cs
- TextRenderingModeValidation.cs
- X509UI.cs
- ServicePointManagerElement.cs
- TableStyle.cs
- ObjectStateEntryDbDataRecord.cs
- CompilationUtil.cs
- SqlRowUpdatingEvent.cs
- NumericUpDownAcceleration.cs
- FixedHighlight.cs
- ComponentResourceKeyConverter.cs
- TagNameToTypeMapper.cs
- ComponentCache.cs
- XsltOutput.cs
- SoapAttributes.cs
- DataRowChangeEvent.cs
- MouseDevice.cs
- NavigationHelper.cs
- PKCS1MaskGenerationMethod.cs
- ReflectPropertyDescriptor.cs
- NestPullup.cs
- XsltException.cs
- InstanceKeyNotReadyException.cs
- MeshGeometry3D.cs
- PrintDialogException.cs
- AdobeCFFWrapper.cs
- WriteTimeStream.cs
- HttpException.cs
- AsyncStreamReader.cs
- AutoGeneratedFieldProperties.cs
- SiteMapDataSourceDesigner.cs
- MaterialGroup.cs
- PackagingUtilities.cs
- MemberInfoSerializationHolder.cs
- XmlSerializerAssemblyAttribute.cs
- XmlUtf8RawTextWriter.cs
- HtmlShimManager.cs
- Content.cs
- DynamicResourceExtension.cs
- CompositeControl.cs
- DesignerActionUI.cs
- ServiceModelExtensionCollectionElement.cs
- _SafeNetHandles.cs
- TypeListConverter.cs
- DataSourceConverter.cs
- DetailsViewInsertedEventArgs.cs
- Executor.cs
- UriParserTemplates.cs
- DataGridColumnReorderingEventArgs.cs
- Activity.cs
- designeractionbehavior.cs
- InnerItemCollectionView.cs
- MethodCallConverter.cs
- ClonableStack.cs
- RelationshipType.cs
- PropertyPathWorker.cs
- AssemblyHelper.cs
- TokenBasedSet.cs
- SystemInformation.cs
- SQLGuidStorage.cs
- XmlFormatExtensionPointAttribute.cs
- SqlUserDefinedTypeAttribute.cs
- AuthenticateEventArgs.cs
- ParallelTimeline.cs
- IriParsingElement.cs
- DbProviderFactoriesConfigurationHandler.cs
- CodeNamespaceImport.cs
- NumberFormatInfo.cs
- WebPartDisplayModeEventArgs.cs
- XmlKeywords.cs
- Matrix.cs
- HyperLink.cs
- RuleSettings.cs
- SoapSchemaImporter.cs
- SqlCacheDependency.cs
- RangeContentEnumerator.cs
- HierarchicalDataBoundControlAdapter.cs
- SubqueryRules.cs
- ExternalException.cs
- AutoScrollHelper.cs
- ZoneMembershipCondition.cs
- EUCJPEncoding.cs
- TokenBasedSet.cs
- ControlTemplate.cs
- RoleGroupCollectionEditor.cs
- DebugHandleTracker.cs
- _LazyAsyncResult.cs
- ArrayWithOffset.cs
- ColumnMapProcessor.cs
- NullPackagingPolicy.cs
- XPathNavigatorKeyComparer.cs
- ParagraphResult.cs
- GB18030Encoding.cs
- ImageListImage.cs
- VBIdentifierNameEditor.cs
- DataException.cs