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
- TextOutput.cs
- Vector3DKeyFrameCollection.cs
- DataSourceCacheDurationConverter.cs
- VideoDrawing.cs
- WindowsAuthenticationModule.cs
- SafeProcessHandle.cs
- XmlSubtreeReader.cs
- ColumnTypeConverter.cs
- UpdatePanelControlTrigger.cs
- MultiTrigger.cs
- VerticalAlignConverter.cs
- srgsitem.cs
- AxisAngleRotation3D.cs
- BaseAsyncResult.cs
- CompositeDuplexBindingElement.cs
- HttpListenerResponse.cs
- SapiRecoContext.cs
- ProcessActivityTreeOptions.cs
- _NestedMultipleAsyncResult.cs
- SerializationInfo.cs
- HoistedLocals.cs
- SerTrace.cs
- PrintPreviewDialog.cs
- DebugTracing.cs
- SslStreamSecurityElement.cs
- TextSimpleMarkerProperties.cs
- ErrorTableItemStyle.cs
- IncrementalReadDecoders.cs
- relpropertyhelper.cs
- AlphaSortedEnumConverter.cs
- Exceptions.cs
- QuotedPrintableStream.cs
- LabelDesigner.cs
- BitmapVisualManager.cs
- MembershipSection.cs
- SystemShuttingDownException.cs
- PropertyPath.cs
- xsdvalidator.cs
- ComAwareEventInfo.cs
- ZipFileInfo.cs
- TableRowCollection.cs
- WebDisplayNameAttribute.cs
- WS2007FederationHttpBinding.cs
- DoubleAnimationUsingPath.cs
- IPAddressCollection.cs
- ConfigurationStrings.cs
- DataGridViewCellCollection.cs
- PersonalizationProvider.cs
- UInt16Storage.cs
- DesignerTransaction.cs
- SolidColorBrush.cs
- TimeEnumHelper.cs
- ProviderCollection.cs
- SchemaImporterExtensionElementCollection.cs
- CssClassPropertyAttribute.cs
- filewebresponse.cs
- Win32Native.cs
- BaseDataListActionList.cs
- AuthenticationService.cs
- EntityParameter.cs
- OracleBoolean.cs
- SAPICategories.cs
- Message.cs
- FontSizeConverter.cs
- CharConverter.cs
- CategoryState.cs
- XmlDigitalSignatureProcessor.cs
- ClientCultureInfo.cs
- ClassicBorderDecorator.cs
- ThrowOnMultipleAssignment.cs
- ContentType.cs
- BamlBinaryWriter.cs
- EncryptedKey.cs
- SHA256CryptoServiceProvider.cs
- ThicknessConverter.cs
- DebugView.cs
- WmpBitmapEncoder.cs
- StringFormat.cs
- WebPartsPersonalizationAuthorization.cs
- HelpEvent.cs
- ChineseLunisolarCalendar.cs
- DataGridViewButtonColumn.cs
- AsymmetricKeyExchangeFormatter.cs
- SafeRightsManagementQueryHandle.cs
- Stackframe.cs
- ImageCodecInfo.cs
- SerializationTrace.cs
- CodeAttributeDeclaration.cs
- TextInfo.cs
- ModelTreeManager.cs
- Trace.cs
- TaskHelper.cs
- ValueConversionAttribute.cs
- Label.cs
- KeyToListMap.cs
- SynchronizedRandom.cs
- CurrencyWrapper.cs
- ConfigurationSectionHelper.cs
- dbenumerator.cs
- ExpandoObject.cs