Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- MetafileHeader.cs
- InternalConfigHost.cs
- Font.cs
- TraceUtility.cs
- StackSpiller.Generated.cs
- TextTreeUndoUnit.cs
- DependencyPropertyHelper.cs
- PeekCompletedEventArgs.cs
- WpfWebRequestHelper.cs
- HandleCollector.cs
- FilteredDataSetHelper.cs
- BitmapPalette.cs
- TextFormatter.cs
- EntityTransaction.cs
- __Filters.cs
- TypeLibConverter.cs
- VirtualPathProvider.cs
- FigureParaClient.cs
- Vector3DValueSerializer.cs
- DataFieldConverter.cs
- Underline.cs
- TypeReference.cs
- DateTimeOffsetAdapter.cs
- BindingCollectionElement.cs
- FilteredReadOnlyMetadataCollection.cs
- DataGridViewColumnConverter.cs
- MembershipPasswordException.cs
- ProgressBarAutomationPeer.cs
- ToolStripSeparator.cs
- AssemblyBuilder.cs
- brushes.cs
- ReachSerializationCacheItems.cs
- RecognitionEventArgs.cs
- TemplateField.cs
- RefExpr.cs
- WindowsListBox.cs
- CustomCategoryAttribute.cs
- ListViewItem.cs
- DataGridViewBindingCompleteEventArgs.cs
- BufferBuilder.cs
- Rect.cs
- UrlMappingCollection.cs
- RecognizedAudio.cs
- AxisAngleRotation3D.cs
- PersonalizationProvider.cs
- StringAnimationUsingKeyFrames.cs
- Roles.cs
- DataServices.cs
- FloatUtil.cs
- PaperSource.cs
- TraceProvider.cs
- ProjectionPathBuilder.cs
- RelationshipFixer.cs
- NativeMethods.cs
- Int64Animation.cs
- MenuStrip.cs
- BlurEffect.cs
- ActivityTypeCodeDomSerializer.cs
- DoWorkEventArgs.cs
- PartBasedPackageProperties.cs
- OutputCacheProfileCollection.cs
- PartBasedPackageProperties.cs
- ScriptingRoleServiceSection.cs
- Panel.cs
- ToolStripDropDownClosedEventArgs.cs
- PageBorderless.cs
- FixedLineResult.cs
- ChtmlTextBoxAdapter.cs
- CompatibleIComparer.cs
- __Error.cs
- CategoryGridEntry.cs
- TextRangeSerialization.cs
- MetadataCollection.cs
- ScriptResourceHandler.cs
- BaseCodePageEncoding.cs
- SingleConverter.cs
- XmlILOptimizerVisitor.cs
- MailWebEventProvider.cs
- FileSecurity.cs
- Random.cs
- XsltFunctions.cs
- SQLSingle.cs
- ContourSegment.cs
- NavigationPropertyAccessor.cs
- AnchoredBlock.cs
- ActiveDocumentEvent.cs
- ConstructorNeedsTagAttribute.cs
- SoapFault.cs
- ControlIdConverter.cs
- TemplateComponentConnector.cs
- SingleBodyParameterMessageFormatter.cs
- PassportAuthenticationModule.cs
- DirectionalLight.cs
- Decimal.cs
- ChannelBinding.cs
- X509CertificateChain.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- DirectionalLight.cs
- BamlBinaryReader.cs
- PropertyGrid.cs