Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Documents / SelectionHighlightInfo.cs / 1 / SelectionHighlightInfo.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Highlight render properties for selected text. // // History: // 07/01/2004 : benwest - 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 : benwest - 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
- RawStylusInputCustomData.cs
- ClientTargetSection.cs
- Assembly.cs
- ApplicationInfo.cs
- WeakReferenceEnumerator.cs
- TableRow.cs
- DependencyPropertyHelper.cs
- HybridDictionary.cs
- SettingsAttributes.cs
- ServiceHttpHandlerFactory.cs
- XmlComplianceUtil.cs
- DataSetMappper.cs
- WindowCollection.cs
- SQLString.cs
- TransactedBatchingBehavior.cs
- Transform3D.cs
- CodeIndexerExpression.cs
- ListViewDataItem.cs
- StylusSystemGestureEventArgs.cs
- WindowAutomationPeer.cs
- CompilationLock.cs
- NameGenerator.cs
- PersonalizationProviderHelper.cs
- _DigestClient.cs
- TextTreeText.cs
- Vector3DAnimationUsingKeyFrames.cs
- EllipticalNodeOperations.cs
- SafeBitVector32.cs
- WindowsTokenRoleProvider.cs
- TagPrefixAttribute.cs
- DataGridViewCellMouseEventArgs.cs
- SpotLight.cs
- FormatException.cs
- PageStatePersister.cs
- CodeDOMProvider.cs
- CompositeClientFormatter.cs
- Sentence.cs
- Matrix3DValueSerializer.cs
- QilDataSource.cs
- ZoneMembershipCondition.cs
- WebPartsPersonalizationAuthorization.cs
- HiddenFieldPageStatePersister.cs
- TypeTypeConverter.cs
- MultiSelectRootGridEntry.cs
- WebControlAdapter.cs
- RightsManagementEncryptionTransform.cs
- CodeMemberMethod.cs
- RuleElement.cs
- validationstate.cs
- LocationUpdates.cs
- ObjectTypeMapping.cs
- DbProviderFactory.cs
- ListViewItemSelectionChangedEvent.cs
- ReflectionHelper.cs
- InternalTransaction.cs
- FlowDocument.cs
- GC.cs
- ReflectionHelper.cs
- Missing.cs
- DateTimeStorage.cs
- TypeReference.cs
- RegexCompilationInfo.cs
- ComponentCache.cs
- PeerCollaboration.cs
- SpinLock.cs
- CodeDOMProvider.cs
- BevelBitmapEffect.cs
- DesignerTransaction.cs
- Stylesheet.cs
- Util.cs
- BitmapFrameEncode.cs
- SmiXetterAccessMap.cs
- BitmapCodecInfoInternal.cs
- DbDataRecord.cs
- ModuleBuilderData.cs
- ShapingWorkspace.cs
- RSAPKCS1SignatureFormatter.cs
- FamilyCollection.cs
- ResourcePermissionBaseEntry.cs
- SingleStorage.cs
- StringDictionary.cs
- TemplateControlBuildProvider.cs
- ChangePassword.cs
- ValidateNames.cs
- GuidelineSet.cs
- EntityException.cs
- EntityCollection.cs
- SeverityFilter.cs
- IsolatedStoragePermission.cs
- RelOps.cs
- PerformanceCounterCategory.cs
- JournalEntryListConverter.cs
- SaveFileDialogDesigner.cs
- SiteOfOriginPart.cs
- DataGridParentRows.cs
- AudioFormatConverter.cs
- ListCollectionView.cs
- ProcessHostConfigUtils.cs
- ToolStripDropDownClosedEventArgs.cs
- HashLookup.cs