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
- FormsAuthenticationConfiguration.cs
- CurrencyManager.cs
- XmlDictionaryWriter.cs
- LoadMessageLogger.cs
- UidManager.cs
- WSSecurityPolicy12.cs
- DataGridViewColumnHeaderCell.cs
- FloaterBaseParagraph.cs
- SqlRowUpdatingEvent.cs
- SuppressMessageAttribute.cs
- UriTemplateHelpers.cs
- SQLStringStorage.cs
- DbException.cs
- VirtualPathUtility.cs
- ISFTagAndGuidCache.cs
- Path.cs
- StdRegProviderWrapper.cs
- BitStack.cs
- SafeEventLogReadHandle.cs
- ResolvedKeyFrameEntry.cs
- Message.cs
- LinkDescriptor.cs
- SymDocumentType.cs
- Range.cs
- Comparer.cs
- ProtocolViolationException.cs
- CommandField.cs
- MergeFailedEvent.cs
- HandleCollector.cs
- VerticalConnector.xaml.cs
- SerializerProvider.cs
- FileEnumerator.cs
- StickyNoteContentControl.cs
- DbExpressionRules.cs
- Rfc4050KeyFormatter.cs
- Timer.cs
- SystemDropShadowChrome.cs
- CroppedBitmap.cs
- ISO2022Encoding.cs
- WebPartHeaderCloseVerb.cs
- SafeIUnknown.cs
- ContentFileHelper.cs
- MetadataUtilsSmi.cs
- LicenseContext.cs
- Roles.cs
- HtmlTableCellCollection.cs
- EdmComplexPropertyAttribute.cs
- ResXResourceWriter.cs
- GlobalizationSection.cs
- DataGridViewColumnCollectionDialog.cs
- HttpResponse.cs
- RealProxy.cs
- Matrix3DValueSerializer.cs
- loginstatus.cs
- SchemaSetCompiler.cs
- XmlReflectionImporter.cs
- WorkflowInstanceExtensionProvider.cs
- StringResourceManager.cs
- FileReservationCollection.cs
- EntityDesignerDataSourceView.cs
- MimeTypeAttribute.cs
- AdjustableArrowCap.cs
- UDPClient.cs
- GridViewColumnCollection.cs
- MsmqInputChannelListener.cs
- TextBoxRenderer.cs
- MailMessage.cs
- WindowsTab.cs
- CacheMemory.cs
- RayMeshGeometry3DHitTestResult.cs
- Stylesheet.cs
- ErrorStyle.cs
- ContentHostHelper.cs
- Function.cs
- RichTextBox.cs
- CuspData.cs
- FieldCollectionEditor.cs
- ConnectionStringsExpressionBuilder.cs
- TransformerInfo.cs
- BindingCompleteEventArgs.cs
- DataServicePagingProviderWrapper.cs
- AssemblyCollection.cs
- CacheMemory.cs
- dtdvalidator.cs
- ETagAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- HttpProcessUtility.cs
- ThemeDirectoryCompiler.cs
- DelegatedStream.cs
- ArrayConverter.cs
- StateDesigner.LayoutSelectionGlyph.cs
- ExceptionUtil.cs
- TimeSpanValidator.cs
- TargetControlTypeAttribute.cs
- AutomationElementCollection.cs
- GenericsInstances.cs
- FileSystemInfo.cs
- EnumValidator.cs
- LocalBuilder.cs
- WebServiceHost.cs