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
- VirtualDirectoryMapping.cs
- ObjectListGeneralPage.cs
- SqlComparer.cs
- CssClassPropertyAttribute.cs
- XamlToRtfWriter.cs
- ExpandSegment.cs
- Vector.cs
- safesecurityhelperavalon.cs
- DrawingGroupDrawingContext.cs
- DecimalMinMaxAggregationOperator.cs
- DataReaderContainer.cs
- LambdaCompiler.Binary.cs
- DataGridViewCellValueEventArgs.cs
- SmtpReplyReaderFactory.cs
- PenContext.cs
- Pair.cs
- DelegatedStream.cs
- CollectionConverter.cs
- GeometryModel3D.cs
- SizeValueSerializer.cs
- WindowsAltTab.cs
- UrlMappingsModule.cs
- CustomError.cs
- XmlJsonReader.cs
- DrawingCollection.cs
- CompositeCollection.cs
- DurableOperationAttribute.cs
- KeyInfo.cs
- Baml2006SchemaContext.cs
- MouseEvent.cs
- httpstaticobjectscollection.cs
- ReflectionTypeLoadException.cs
- InteropAutomationProvider.cs
- AccessibleObject.cs
- RoutedEventHandlerInfo.cs
- TransformationRules.cs
- XmlQueryRuntime.cs
- DataSvcMapFile.cs
- OracleCommandBuilder.cs
- LingerOption.cs
- RichTextBox.cs
- GCHandleCookieTable.cs
- cookie.cs
- RenderingEventArgs.cs
- ApplyTemplatesAction.cs
- DateTimeValueSerializerContext.cs
- QueryStringParameter.cs
- PtsCache.cs
- AutomationInteropProvider.cs
- RegexNode.cs
- CookielessHelper.cs
- SelectionRangeConverter.cs
- SafeCryptContextHandle.cs
- Expression.cs
- CompositeFontFamily.cs
- TraceHandler.cs
- DateTimeHelper.cs
- SingleKeyFrameCollection.cs
- WebBrowsableAttribute.cs
- Utils.cs
- EventLogLink.cs
- DataColumn.cs
- GeometryModel3D.cs
- IntellisenseTextBox.designer.cs
- _ConnectOverlappedAsyncResult.cs
- SplayTreeNode.cs
- StringOutput.cs
- ThreadSafeList.cs
- StreamMarshaler.cs
- DbTransaction.cs
- SetStoryboardSpeedRatio.cs
- MinimizableAttributeTypeConverter.cs
- FormsAuthenticationEventArgs.cs
- TcpServerChannel.cs
- Utils.cs
- StyleCollection.cs
- VirtualPathUtility.cs
- WindowsListBox.cs
- Identity.cs
- ProxyDataContractResolver.cs
- HttpGetClientProtocol.cs
- ImageDrawing.cs
- QilVisitor.cs
- ListChangedEventArgs.cs
- XmlRawWriter.cs
- WebDisplayNameAttribute.cs
- AbsoluteQuery.cs
- DataGridViewRowHeaderCell.cs
- MeasureData.cs
- ValidationHelper.cs
- MergeFailedEvent.cs
- Visual3D.cs
- QilName.cs
- HebrewNumber.cs
- Messages.cs
- GroupItemAutomationPeer.cs
- SmiXetterAccessMap.cs
- TextRunTypographyProperties.cs
- SmtpReplyReaderFactory.cs
- WindowsPen.cs