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
- TypeSystem.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- HttpFileCollectionWrapper.cs
- OracleSqlParser.cs
- SqlNamer.cs
- _TLSstream.cs
- AnnotationService.cs
- UIInitializationException.cs
- CompilationRelaxations.cs
- CustomDictionarySources.cs
- DataRecordInternal.cs
- XmlParserContext.cs
- IndexOutOfRangeException.cs
- WindowsContainer.cs
- XamlReaderHelper.cs
- _ConnectOverlappedAsyncResult.cs
- SmiMetaData.cs
- WinFormsUtils.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- EntityDataSourceQueryBuilder.cs
- _BufferOffsetSize.cs
- TagPrefixInfo.cs
- JapaneseCalendar.cs
- StorageSetMapping.cs
- NativeRecognizer.cs
- Control.cs
- WebScriptServiceHostFactory.cs
- MailDefinitionBodyFileNameEditor.cs
- ResourceSet.cs
- CodeDirectionExpression.cs
- MarkupProperty.cs
- Stackframe.cs
- ConfigurationManagerHelper.cs
- AdapterUtil.cs
- HwndHostAutomationPeer.cs
- CollectionConverter.cs
- PopupControlService.cs
- CodeCommentStatementCollection.cs
- BooleanAnimationBase.cs
- ForeignKeyFactory.cs
- ErrorFormatter.cs
- DateTimeEditor.cs
- TemplateBindingExtensionConverter.cs
- StoreItemCollection.Loader.cs
- SynchronizationContext.cs
- WinCategoryAttribute.cs
- AssemblyNameEqualityComparer.cs
- SqlVersion.cs
- DrawingBrush.cs
- PublisherMembershipCondition.cs
- KnownTypes.cs
- CompositionAdorner.cs
- EnvelopedPkcs7.cs
- MaskDescriptor.cs
- ConfigurationManagerHelper.cs
- FocusWithinProperty.cs
- C14NUtil.cs
- Lease.cs
- RuntimeHelpers.cs
- SendMessageRecord.cs
- MemberDomainMap.cs
- DataColumnPropertyDescriptor.cs
- XmlValueConverter.cs
- ByteKeyFrameCollection.cs
- ModelUIElement3D.cs
- WsdlImporterElement.cs
- List.cs
- EpmSyndicationContentSerializer.cs
- XamlGridLengthSerializer.cs
- XmlSchemaSimpleTypeRestriction.cs
- HitTestFilterBehavior.cs
- CollectionChangedEventManager.cs
- FontNamesConverter.cs
- ConsumerConnectionPointCollection.cs
- StylusButtonCollection.cs
- PeerChannelFactory.cs
- TextRangeEditLists.cs
- Crypto.cs
- TargetInvocationException.cs
- Util.cs
- JsonEnumDataContract.cs
- FixedSOMTable.cs
- CodeIndexerExpression.cs
- XmlHierarchicalEnumerable.cs
- StorageAssociationTypeMapping.cs
- ProjectionRewriter.cs
- FileDataSourceCache.cs
- ExpressionNormalizer.cs
- PersonalizationProviderHelper.cs
- UnsafeNativeMethods.cs
- CodeTryCatchFinallyStatement.cs
- Deflater.cs
- BinaryVersion.cs
- ScriptingProfileServiceSection.cs
- SamlAuthenticationClaimResource.cs
- CompensationHandlingFilter.cs
- EntityProxyTypeInfo.cs
- DuplexClientBase.cs
- BrowserTree.cs
- nulltextnavigator.cs