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
- GiveFeedbackEventArgs.cs
- AttributeEmitter.cs
- sortedlist.cs
- SemanticResolver.cs
- ModelEditingScope.cs
- ButtonChrome.cs
- IndexedGlyphRun.cs
- TraceUtils.cs
- CompositeTypefaceMetrics.cs
- StrokeCollection.cs
- RSAOAEPKeyExchangeFormatter.cs
- LogicalExpr.cs
- Timer.cs
- MetadataProperty.cs
- BindingExpressionUncommonField.cs
- XmlStringTable.cs
- MatrixConverter.cs
- Roles.cs
- GridViewPageEventArgs.cs
- AttributeCollection.cs
- Buffer.cs
- RequestCacheManager.cs
- FontClient.cs
- EntityContainer.cs
- Listbox.cs
- DeclaredTypeValidator.cs
- FixedSOMLineCollection.cs
- RefreshPropertiesAttribute.cs
- RSACryptoServiceProvider.cs
- RoutedEventConverter.cs
- ObservableDictionary.cs
- ClusterRegistryConfigurationProvider.cs
- SqlClientWrapperSmiStream.cs
- DashStyle.cs
- ValidatedControlConverter.cs
- BuildProviderCollection.cs
- XmlElementAttributes.cs
- WebPartVerb.cs
- MappingException.cs
- WorkflowDebuggerSteppingAttribute.cs
- FormsIdentity.cs
- StateMachineAction.cs
- ToolConsole.cs
- ValidatingReaderNodeData.cs
- panel.cs
- PrintPreviewGraphics.cs
- VariableAction.cs
- UserValidatedEventArgs.cs
- ManifestResourceInfo.cs
- StreamReader.cs
- DataGridViewControlCollection.cs
- SignedInfo.cs
- TreeNodeConverter.cs
- DocumentPage.cs
- SlotInfo.cs
- CultureNotFoundException.cs
- SrgsRule.cs
- TrackBar.cs
- SmtpTransport.cs
- SupportsEventValidationAttribute.cs
- BaseCodeDomTreeGenerator.cs
- SqlTypeSystemProvider.cs
- SqlConnectionStringBuilder.cs
- Command.cs
- PropertyValueChangedEvent.cs
- ThemeDictionaryExtension.cs
- SoapTypeAttribute.cs
- GlyphRun.cs
- TextShapeableCharacters.cs
- ImageMap.cs
- HostingPreferredMapPath.cs
- AppearanceEditorPart.cs
- AllMembershipCondition.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- TextContainer.cs
- SyntaxCheck.cs
- Normalization.cs
- CacheVirtualItemsEvent.cs
- StylusPlugin.cs
- PrintingPermission.cs
- RectAnimationBase.cs
- AuthStoreRoleProvider.cs
- SequenceRange.cs
- UnmanagedMemoryStreamWrapper.cs
- ForeignKeyConstraint.cs
- ProfessionalColors.cs
- ListParagraph.cs
- ParameterModifier.cs
- SHA256.cs
- Descriptor.cs
- TypeDelegator.cs
- EditorPartCollection.cs
- TransactionManagerProxy.cs
- TaskFormBase.cs
- DataRelationPropertyDescriptor.cs
- KeyPullup.cs
- ApplicationServiceManager.cs
- XsltConvert.cs
- XamlStream.cs
- HtmlContainerControl.cs