Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- BitmapCodecInfo.cs
- Expander.cs
- QueryPrefixOp.cs
- DeploymentSection.cs
- RadioButton.cs
- KeyGestureConverter.cs
- GridViewSelectEventArgs.cs
- HwndSourceKeyboardInputSite.cs
- Subtree.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- DataSourceIDConverter.cs
- StandardCommands.cs
- XslTransform.cs
- RemotingServices.cs
- CodeTypeMember.cs
- RepeaterItem.cs
- LineGeometry.cs
- SplineQuaternionKeyFrame.cs
- ProgressChangedEventArgs.cs
- GPPOINTF.cs
- MemberHolder.cs
- XmlChildEnumerator.cs
- FixedBufferAttribute.cs
- DataSetMappper.cs
- BlurEffect.cs
- XmlComplianceUtil.cs
- DBCommandBuilder.cs
- XPathParser.cs
- TextCompositionManager.cs
- PathFigureCollectionConverter.cs
- SqlUtils.cs
- InvariantComparer.cs
- ContextMenuService.cs
- RemotingException.cs
- AddIn.cs
- JournalEntry.cs
- SessionIDManager.cs
- TypefaceMap.cs
- ISAPIWorkerRequest.cs
- CultureInfo.cs
- SynchronizingStream.cs
- ZipIOLocalFileDataDescriptor.cs
- FrameworkName.cs
- GeometryGroup.cs
- Vars.cs
- LineSegment.cs
- CharacterHit.cs
- SessionEndedEventArgs.cs
- InlineCollection.cs
- Package.cs
- RectAnimationClockResource.cs
- Events.cs
- ResXResourceSet.cs
- FormViewRow.cs
- PersonalizableTypeEntry.cs
- ControlPaint.cs
- FormConverter.cs
- ASCIIEncoding.cs
- WindowAutomationPeer.cs
- SupportingTokenParameters.cs
- ConnectivityStatus.cs
- Connection.cs
- UInt32.cs
- Utils.cs
- QuaternionAnimation.cs
- OptimizedTemplateContent.cs
- StructuredTypeEmitter.cs
- NavigationProgressEventArgs.cs
- PropertyGridCommands.cs
- BufferedGraphicsManager.cs
- SiteMap.cs
- ExtendedProperty.cs
- FlowDocumentPage.cs
- TextElementEditingBehaviorAttribute.cs
- InvalidOperationException.cs
- ColorDialog.cs
- BasicHttpMessageCredentialType.cs
- WSHttpBindingBase.cs
- HiddenFieldPageStatePersister.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- Helpers.cs
- UIEndRequest.cs
- BadImageFormatException.cs
- __TransparentProxy.cs
- SHA1Managed.cs
- TypeConverterHelper.cs
- TextSchema.cs
- DataListCommandEventArgs.cs
- GridSplitter.cs
- Events.cs
- OperatorExpressions.cs
- XamlStream.cs
- FontCacheUtil.cs
- PageParserFilter.cs
- _Win32.cs
- ListMarkerLine.cs
- WebPartCatalogCloseVerb.cs
- RealizationDrawingContextWalker.cs
- Quaternion.cs
- UrlAuthorizationModule.cs