Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / SelectionHighlightInfo.cs / 1305600 / SelectionHighlightInfo.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Highlight render properties for selected text. // // History: // 07/01/2004 : [....] - 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 : [....] - 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
- TreeViewItem.cs
- RuntimeResourceSet.cs
- X509Certificate.cs
- ApplicationActivator.cs
- InvokeGenerator.cs
- UIElement.cs
- CroppedBitmap.cs
- MethodRental.cs
- HttpWebRequestElement.cs
- RbTree.cs
- FormsAuthenticationCredentials.cs
- DBCommandBuilder.cs
- SourceFilter.cs
- TextRange.cs
- Span.cs
- SystemIPAddressInformation.cs
- EventDescriptor.cs
- DataBoundLiteralControl.cs
- CodeTypeReferenceExpression.cs
- GridViewColumnHeaderAutomationPeer.cs
- WorkflowNamespace.cs
- XPathBinder.cs
- HtmlInputCheckBox.cs
- Vector3DIndependentAnimationStorage.cs
- DataError.cs
- basevalidator.cs
- XPathParser.cs
- PassportAuthentication.cs
- RegionIterator.cs
- FreezableOperations.cs
- WorkflowRuntimeSection.cs
- DoubleAnimationClockResource.cs
- MetadataFile.cs
- DataGridRelationshipRow.cs
- HttpDictionary.cs
- ManagedWndProcTracker.cs
- ScopelessEnumAttribute.cs
- TextCompositionEventArgs.cs
- XmlSchemaAttributeGroupRef.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- TimeZone.cs
- ProjectionRewriter.cs
- Material.cs
- TokenFactoryFactory.cs
- MergeLocalizationDirectives.cs
- _ProxyRegBlob.cs
- DrawListViewItemEventArgs.cs
- COM2FontConverter.cs
- XmlIlTypeHelper.cs
- RelationshipManager.cs
- AutomationPropertyInfo.cs
- CallInfo.cs
- ControlValuePropertyAttribute.cs
- CompiledQuery.cs
- StyleCollection.cs
- OutputWindow.cs
- XmlSchemaSimpleTypeRestriction.cs
- CodeParameterDeclarationExpressionCollection.cs
- XmlName.cs
- TextBoxAutoCompleteSourceConverter.cs
- EventLogger.cs
- XmlIgnoreAttribute.cs
- DataGridColumnCollection.cs
- GreenMethods.cs
- SafeNativeMethodsMilCoreApi.cs
- MSAAWinEventWrap.cs
- DBSchemaRow.cs
- ToolStripContainer.cs
- ToolStripPanel.cs
- BaseTreeIterator.cs
- DataViewManagerListItemTypeDescriptor.cs
- GridViewDeletedEventArgs.cs
- OperationContractAttribute.cs
- VisualProxy.cs
- TransformerInfo.cs
- MarshalByRefObject.cs
- WebPartHeaderCloseVerb.cs
- ReadWriteSpinLock.cs
- util.cs
- MethodAccessException.cs
- AdornerHitTestResult.cs
- FormClosedEvent.cs
- ScrollableControl.cs
- LocationFactory.cs
- TextBox.cs
- Label.cs
- Timeline.cs
- ExtensionWindow.cs
- XslCompiledTransform.cs
- ShaderEffect.cs
- CustomCredentialPolicy.cs
- PlatformNotSupportedException.cs
- localization.cs
- XamlDesignerSerializationManager.cs
- SecurityPolicySection.cs
- RoutedEvent.cs
- ReadOnlyTernaryTree.cs
- SqlConnectionHelper.cs
- TextServicesContext.cs
- Base64Decoder.cs