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
- WMIInterop.cs
- SweepDirectionValidation.cs
- HtmlWindowCollection.cs
- DataGridTablesFactory.cs
- JsonReaderWriterFactory.cs
- Attribute.cs
- Attachment.cs
- OnOperation.cs
- XmlConvert.cs
- ProcessHostServerConfig.cs
- MetadataWorkspace.cs
- RegexRunner.cs
- RegistrationContext.cs
- CardSpacePolicyElement.cs
- SimpleType.cs
- Double.cs
- DropShadowBitmapEffect.cs
- TemplateControlParser.cs
- RegisteredHiddenField.cs
- MetadataException.cs
- storepermission.cs
- InheritanceRules.cs
- ConsumerConnectionPointCollection.cs
- ScrollProviderWrapper.cs
- Version.cs
- DataGridViewAdvancedBorderStyle.cs
- TypeGeneratedEventArgs.cs
- HtmlTableCell.cs
- LineInfo.cs
- MonitoringDescriptionAttribute.cs
- QilList.cs
- ListViewHitTestInfo.cs
- GridViewCancelEditEventArgs.cs
- UnsafeNativeMethods.cs
- TableStyle.cs
- SafeNativeMethods.cs
- ExtensibleClassFactory.cs
- ComponentSerializationService.cs
- MetadataFile.cs
- BuildDependencySet.cs
- ObjectItemConventionAssemblyLoader.cs
- ItemType.cs
- QilLoop.cs
- ResourceCodeDomSerializer.cs
- ItemsPresenter.cs
- IndentedTextWriter.cs
- IsolatedStoragePermission.cs
- DataGridCommandEventArgs.cs
- DbParameterCollectionHelper.cs
- MDIClient.cs
- VisualProxy.cs
- SpellerError.cs
- InvalidCastException.cs
- WorkflowMessageEventHandler.cs
- SqlDataSourceConfigureFilterForm.cs
- InvalidCastException.cs
- DataSourceHelper.cs
- XmlSchemaAttributeGroup.cs
- ConditionedDesigner.cs
- HttpCapabilitiesBase.cs
- NameTable.cs
- SQLBytesStorage.cs
- EncryptedData.cs
- LocalServiceSecuritySettings.cs
- Selection.cs
- RectangleGeometry.cs
- RelatedPropertyManager.cs
- ReadOnlyMetadataCollection.cs
- XmlKeywords.cs
- X509Certificate.cs
- RepeatInfo.cs
- WorkflowServiceHostFactory.cs
- IDataContractSurrogate.cs
- RubberbandSelector.cs
- TemplateInstanceAttribute.cs
- Column.cs
- SimpleMailWebEventProvider.cs
- FixedSOMPageElement.cs
- LightweightCodeGenerator.cs
- ValuePatternIdentifiers.cs
- securitymgrsite.cs
- DesignerValidatorAdapter.cs
- HyperLink.cs
- SafeNativeMethods.cs
- BulletChrome.cs
- TextFormatterContext.cs
- ViewStateException.cs
- DbConnectionStringBuilder.cs
- FixUpCollection.cs
- ValueOfAction.cs
- ExtractorMetadata.cs
- FtpWebResponse.cs
- Geometry.cs
- SizeAnimationClockResource.cs
- Iis7Helper.cs
- BinaryMessageEncoder.cs
- CodeActivityContext.cs
- DataGridViewCellCancelEventArgs.cs
- ImageAnimator.cs
- PointConverter.cs