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
- DifferencingCollection.cs
- StandardCommands.cs
- NavigatingCancelEventArgs.cs
- MediaElementAutomationPeer.cs
- EntitySqlQueryBuilder.cs
- ObjectTag.cs
- CollectionBase.cs
- ExceptionUtil.cs
- TemplateControlParser.cs
- RepeaterCommandEventArgs.cs
- ProjectionPathSegment.cs
- SoapSchemaImporter.cs
- MarkupCompilePass1.cs
- ValidationErrorEventArgs.cs
- PersistenceTypeAttribute.cs
- ReversePositionQuery.cs
- TimeSpan.cs
- BaseComponentEditor.cs
- ObjectTypeMapping.cs
- MimeMultiPart.cs
- ProfilePropertySettings.cs
- DifferencingCollection.cs
- LogLogRecord.cs
- TypefaceMap.cs
- NullEntityWrapper.cs
- LogRecordSequence.cs
- WebPartUtil.cs
- ConfigurationManagerHelper.cs
- DataSourceXmlClassAttribute.cs
- UiaCoreProviderApi.cs
- DataExpression.cs
- PointCollection.cs
- SchemaTypeEmitter.cs
- XsltLoader.cs
- XAMLParseException.cs
- Utils.cs
- WebPartDisplayModeEventArgs.cs
- Facet.cs
- ScrollData.cs
- NativeRecognizer.cs
- CodeArgumentReferenceExpression.cs
- SoapReflectionImporter.cs
- documentsequencetextview.cs
- ObjectToIdCache.cs
- ApplicationFileParser.cs
- DetailsViewDeletedEventArgs.cs
- EntityTypeEmitter.cs
- StronglyTypedResourceBuilder.cs
- ResponseStream.cs
- XmlSignatureManifest.cs
- RunInstallerAttribute.cs
- TriggerBase.cs
- ProxyHelper.cs
- ObjectTokenCategory.cs
- SmtpMail.cs
- EntitySqlQueryBuilder.cs
- SHA1CryptoServiceProvider.cs
- Comparer.cs
- TerminatorSinks.cs
- DateTimeOffset.cs
- WebPartUtil.cs
- DataGridState.cs
- WpfPayload.cs
- TrackingMemoryStream.cs
- _AutoWebProxyScriptHelper.cs
- AdCreatedEventArgs.cs
- Base64Decoder.cs
- MemberDescriptor.cs
- EntityContainerEmitter.cs
- WeakReference.cs
- Roles.cs
- BindingContext.cs
- DesignerAttributeInfo.cs
- UnsupportedPolicyOptionsException.cs
- StylusEventArgs.cs
- Empty.cs
- PartialCachingAttribute.cs
- BulletedListDesigner.cs
- RtfToken.cs
- SqlCommand.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- PersistenceContextEnlistment.cs
- FrameDimension.cs
- ContractUtils.cs
- CheckBoxField.cs
- SupportingTokenAuthenticatorSpecification.cs
- PropertyFilterAttribute.cs
- GiveFeedbackEventArgs.cs
- PolyLineSegment.cs
- ColumnWidthChangedEvent.cs
- WindowsFormsSynchronizationContext.cs
- Pen.cs
- CollectionConverter.cs
- ToolStripOverflow.cs
- SortableBindingList.cs
- HexParser.cs
- WinFormsSpinner.cs
- FileDialogCustomPlace.cs
- HeaderCollection.cs
- SubMenuStyle.cs