Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DbProviderServices.cs
- KeyboardEventArgs.cs
- ContractSearchPattern.cs
- ContainsSearchOperator.cs
- TaskDesigner.cs
- MenuItem.cs
- AnnotationAuthorChangedEventArgs.cs
- BufferedGraphics.cs
- CreatingCookieEventArgs.cs
- ScriptBehaviorDescriptor.cs
- ReadOnlyHierarchicalDataSource.cs
- cookiecollection.cs
- RequestQueryProcessor.cs
- PropertyEmitterBase.cs
- SplashScreen.cs
- DllNotFoundException.cs
- Main.cs
- ActiveXSite.cs
- RegionIterator.cs
- CacheAxisQuery.cs
- SharedHttpTransportManager.cs
- PropertyTabAttribute.cs
- XhtmlBasicControlAdapter.cs
- ViewLoader.cs
- GeneratedCodeAttribute.cs
- QueryCacheEntry.cs
- DbProviderServices.cs
- ActivityXRefConverter.cs
- CalendarDay.cs
- MasterPage.cs
- TraceFilter.cs
- ArgIterator.cs
- SmtpMail.cs
- AsyncOperationContext.cs
- BindingMemberInfo.cs
- DesignTimeVisibleAttribute.cs
- SQLInt16Storage.cs
- SQLInt32.cs
- NumberSubstitution.cs
- BrowserCapabilitiesFactoryBase.cs
- ReachVisualSerializer.cs
- XamlClipboardData.cs
- OpenFileDialog.cs
- StreamSecurityUpgradeInitiatorBase.cs
- CollectionBuilder.cs
- TypeUsage.cs
- AutoGeneratedFieldProperties.cs
- FixedPageAutomationPeer.cs
- ValueSerializer.cs
- ContextMenu.cs
- CustomTrackingQuery.cs
- Process.cs
- BoundField.cs
- DataGridViewColumn.cs
- RoleGroupCollection.cs
- NavigationWindow.cs
- InlineObject.cs
- MsmqBindingBase.cs
- CommandValueSerializer.cs
- ListManagerBindingsCollection.cs
- FlowNode.cs
- SQLGuid.cs
- ActiveXHelper.cs
- TableColumnCollectionInternal.cs
- AnyReturnReader.cs
- ListMarkerSourceInfo.cs
- Internal.cs
- CodeTypeParameter.cs
- WebPartConnectVerb.cs
- Pair.cs
- assertwrapper.cs
- BitmapEffectGeneralTransform.cs
- DataTableClearEvent.cs
- SchemaTableColumn.cs
- EntityDesignerBuildProvider.cs
- ExpandCollapseProviderWrapper.cs
- RowsCopiedEventArgs.cs
- EntityContainerEntitySetDefiningQuery.cs
- Walker.cs
- NativeWrapper.cs
- BitmapFrameDecode.cs
- SqlConnection.cs
- ACE.cs
- Context.cs
- DataGridViewSelectedCellCollection.cs
- HWStack.cs
- StrongNameIdentityPermission.cs
- KeyToListMap.cs
- SpellerHighlightLayer.cs
- DocumentProperties.cs
- SmiEventSink.cs
- CurrencyWrapper.cs
- TypeSystemProvider.cs
- SettingsPropertyNotFoundException.cs
- ModuleBuilderData.cs
- DataExchangeServiceBinder.cs
- WebServiceHost.cs
- DomainUpDown.cs
- IListConverters.cs
- Rectangle.cs