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
- Emitter.cs
- XsdDateTime.cs
- StylusPoint.cs
- DeclaredTypeElementCollection.cs
- TypeRestriction.cs
- Transform.cs
- SemaphoreFullException.cs
- precedingquery.cs
- CharEnumerator.cs
- XslNumber.cs
- TdsParameterSetter.cs
- OleDbParameterCollection.cs
- EntityDataSourceChangedEventArgs.cs
- ResolveCriteria.cs
- TrackingMemoryStreamFactory.cs
- ItemCheckEvent.cs
- X509CertificateClaimSet.cs
- TextSelectionProcessor.cs
- AddInContractAttribute.cs
- SequenceNumber.cs
- JsonGlobals.cs
- BuildDependencySet.cs
- UrlPropertyAttribute.cs
- ReceiveActivityDesignerTheme.cs
- TargetControlTypeCache.cs
- SaveFileDialog.cs
- RemotingException.cs
- DispatcherExceptionFilterEventArgs.cs
- BinaryMethodMessage.cs
- DSASignatureDeformatter.cs
- CodeChecksumPragma.cs
- Adorner.cs
- TemplatedEditableDesignerRegion.cs
- ConstructorNeedsTagAttribute.cs
- PtsPage.cs
- InvokeProviderWrapper.cs
- BindStream.cs
- XmlAttributes.cs
- UpdatePanelControlTrigger.cs
- IItemContainerGenerator.cs
- SQLBytes.cs
- OdbcErrorCollection.cs
- Pens.cs
- VariantWrapper.cs
- GrammarBuilderPhrase.cs
- ExceptionValidationRule.cs
- FontStyleConverter.cs
- SharedPerformanceCounter.cs
- BlobPersonalizationState.cs
- TextServicesPropertyRanges.cs
- DoubleUtil.cs
- OleDbInfoMessageEvent.cs
- WinFormsSpinner.cs
- SqlDataSource.cs
- DataFieldConverter.cs
- FullTextLine.cs
- SystemParameters.cs
- SingleStorage.cs
- ConnectionInterfaceCollection.cs
- RuleSettingsCollection.cs
- SoapDocumentServiceAttribute.cs
- RoutedCommand.cs
- NumberSubstitution.cs
- BuildProvider.cs
- WindowAutomationPeer.cs
- ApplicationContext.cs
- UInt32.cs
- ConstraintConverter.cs
- TableParagraph.cs
- EmbossBitmapEffect.cs
- SelectingProviderEventArgs.cs
- AsyncResult.cs
- XmlnsCompatibleWithAttribute.cs
- BoolExpressionVisitors.cs
- IdleTimeoutMonitor.cs
- SelectionList.cs
- SynchronizedPool.cs
- ListenerElementsCollection.cs
- FilteredDataSetHelper.cs
- CatalogZone.cs
- BaseTreeIterator.cs
- Debug.cs
- KeyProperty.cs
- CreatingCookieEventArgs.cs
- HttpPostedFile.cs
- Size3DValueSerializer.cs
- FontSource.cs
- BaseContextMenu.cs
- BulletedListEventArgs.cs
- DefaultEventAttribute.cs
- PermissionSetTriple.cs
- ConstrainedDataObject.cs
- CombinedGeometry.cs
- NGCSerializationManagerAsync.cs
- AtlasWeb.Designer.cs
- MasterPageBuildProvider.cs
- ClipboardProcessor.cs
- MdiWindowListItemConverter.cs
- ProxyWebPart.cs
- WsatServiceAddress.cs