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
- SAPIEngineTypes.cs
- TemplateAction.cs
- JournalEntry.cs
- ExternalException.cs
- Win32KeyboardDevice.cs
- SrgsRulesCollection.cs
- SpecularMaterial.cs
- AnnotationDocumentPaginator.cs
- CommandBinding.cs
- VisualStateGroup.cs
- InertiaRotationBehavior.cs
- VarRefManager.cs
- DesignerLinkAdapter.cs
- ContentType.cs
- VolatileResourceManager.cs
- PopOutPanel.cs
- HealthMonitoringSectionHelper.cs
- BindingValueChangedEventArgs.cs
- AttributeQuery.cs
- ProfileSettings.cs
- X500Name.cs
- DtcInterfaces.cs
- Tokenizer.cs
- CodeTypeDelegate.cs
- ImageButton.cs
- WebRequestModuleElement.cs
- parserscommon.cs
- ProvideValueServiceProvider.cs
- JsonXmlDataContract.cs
- ParagraphResult.cs
- TdsParserStateObject.cs
- ListViewUpdatedEventArgs.cs
- OneToOneMappingSerializer.cs
- ObjectAssociationEndMapping.cs
- RecordsAffectedEventArgs.cs
- PersistenceTypeAttribute.cs
- TimeSpanMinutesConverter.cs
- PackageRelationshipSelector.cs
- QueryAsyncResult.cs
- FontNamesConverter.cs
- URLBuilder.cs
- XsltContext.cs
- RectAnimation.cs
- CodeAttachEventStatement.cs
- RotateTransform3D.cs
- XPathNode.cs
- ObjectManager.cs
- RuntimeVariablesExpression.cs
- CodeDOMProvider.cs
- METAHEADER.cs
- DeleteIndexBinder.cs
- PropertyGrid.cs
- RSAOAEPKeyExchangeFormatter.cs
- CharUnicodeInfo.cs
- SocketInformation.cs
- RouteValueExpressionBuilder.cs
- UdpDiscoveryEndpoint.cs
- SqlBuilder.cs
- StackOverflowException.cs
- Assembly.cs
- storepermission.cs
- ISSmlParser.cs
- MethodExpression.cs
- GeneralTransform3DTo2DTo3D.cs
- DataGridViewButtonColumn.cs
- ObjectItemNoOpAssemblyLoader.cs
- Profiler.cs
- MsmqBindingElementBase.cs
- XamlTreeBuilder.cs
- WorkflowViewElement.cs
- CultureInfoConverter.cs
- ObjectListItemCollection.cs
- WSSecurityTokenSerializer.cs
- TypePresenter.xaml.cs
- HttpApplicationStateWrapper.cs
- SchemaImporter.cs
- CommandID.cs
- RepeatInfo.cs
- EdmItemCollection.cs
- GB18030Encoding.cs
- SQLBoolean.cs
- DesignerOptionService.cs
- ValidationEventArgs.cs
- BooleanAnimationBase.cs
- Underline.cs
- HtmlTernaryTree.cs
- CopyOnWriteList.cs
- XmlObjectSerializerReadContextComplexJson.cs
- CompositeCollectionView.cs
- ReaderWriterLockSlim.cs
- FontUnitConverter.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- CompilationLock.cs
- SplineKeyFrames.cs
- SchemaEntity.cs
- DesignBindingValueUIHandler.cs
- ValidatedControlConverter.cs
- InheritedPropertyChangedEventArgs.cs
- DataGridViewDataConnection.cs
- WebScriptMetadataMessage.cs