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
- EnumerableCollectionView.cs
- PeerApplicationLaunchInfo.cs
- EmptyReadOnlyDictionaryInternal.cs
- OutputCacheSettingsSection.cs
- PropertyGridEditorPart.cs
- TabControl.cs
- TextFormatter.cs
- ToolboxDataAttribute.cs
- WrappedIUnknown.cs
- ResolvePPIDRequest.cs
- DataGridHyperlinkColumn.cs
- ExceptionHandlers.cs
- GeneralTransform3DGroup.cs
- XmlSchemaElement.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ErrorFormatter.cs
- DisplayNameAttribute.cs
- CellConstantDomain.cs
- Utils.cs
- SHA512.cs
- SqlConnection.cs
- ExecutionEngineException.cs
- xmlglyphRunInfo.cs
- PtsContext.cs
- SystemDiagnosticsSection.cs
- FixedTextPointer.cs
- EntityDataSourceSelectedEventArgs.cs
- PersonalizableAttribute.cs
- TitleStyle.cs
- FontCacheLogic.cs
- Types.cs
- RelatedView.cs
- WindowsTitleBar.cs
- GroupBoxAutomationPeer.cs
- MSAANativeProvider.cs
- HitTestParameters3D.cs
- TypeConverterHelper.cs
- PathGradientBrush.cs
- ValueQuery.cs
- RSAProtectedConfigurationProvider.cs
- MissingSatelliteAssemblyException.cs
- XmlSchemaElement.cs
- DebugController.cs
- FusionWrap.cs
- ControlUtil.cs
- DefaultWorkflowTransactionService.cs
- ToolStripComboBox.cs
- C14NUtil.cs
- Marshal.cs
- IUnknownConstantAttribute.cs
- HttpHandlersSection.cs
- ChannelSinkStacks.cs
- TrustManagerPromptUI.cs
- IndexerNameAttribute.cs
- SoapTypeAttribute.cs
- XmlTypeAttribute.cs
- InstanceValue.cs
- Themes.cs
- CompositeScriptReference.cs
- RemoveStoryboard.cs
- RowUpdatingEventArgs.cs
- TimelineGroup.cs
- DashStyles.cs
- GregorianCalendar.cs
- TerminatorSinks.cs
- Renderer.cs
- SoapEnvelopeProcessingElement.cs
- SafeMILHandleMemoryPressure.cs
- CharAnimationUsingKeyFrames.cs
- SoapAttributes.cs
- AdornedElementPlaceholder.cs
- XPathDocumentBuilder.cs
- RepeatButton.cs
- UpDownEvent.cs
- VisualStyleTypesAndProperties.cs
- Rotation3DAnimationUsingKeyFrames.cs
- BitStack.cs
- FormsAuthenticationTicket.cs
- ModelTreeEnumerator.cs
- QueueNameHelper.cs
- LayoutEditorPart.cs
- WaitHandle.cs
- XmlRawWriter.cs
- StateWorkerRequest.cs
- PointF.cs
- FlowPosition.cs
- MobileUserControl.cs
- RemotingException.cs
- JoinTreeNode.cs
- TraceSection.cs
- AvtEvent.cs
- NotImplementedException.cs
- PointUtil.cs
- MessageSmuggler.cs
- GridViewAutomationPeer.cs
- ValidationError.cs
- TabletDevice.cs
- ExtenderControl.cs
- Rect3DConverter.cs
- KnownBoxes.cs