Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsFormsLinkLabel.cs
- LogFlushAsyncResult.cs
- SymbolEqualComparer.cs
- SvcMapFileSerializer.cs
- PersianCalendar.cs
- Interlocked.cs
- selecteditemcollection.cs
- AnnotationDocumentPaginator.cs
- WebPartMenu.cs
- ImageCodecInfo.cs
- PageDeviceFont.cs
- WebPartAddingEventArgs.cs
- WebPartTransformerCollection.cs
- RepeatEnumerable.cs
- HttpValueCollection.cs
- FrameworkElement.cs
- TimeSpan.cs
- ConnectionPoolRegistry.cs
- LayoutSettings.cs
- AppSettingsReader.cs
- CommonDialog.cs
- FtpWebResponse.cs
- DbProviderFactories.cs
- AttributeEmitter.cs
- ConfigurationSection.cs
- ClockGroup.cs
- RightsManagementEncryptionTransform.cs
- DisplayInformation.cs
- BamlRecordReader.cs
- IndicCharClassifier.cs
- LinkButton.cs
- WebPartConnectionsCancelEventArgs.cs
- SerializationAttributes.cs
- DateTimeOffsetStorage.cs
- DecimalAnimationBase.cs
- BaseServiceProvider.cs
- SwitchLevelAttribute.cs
- BooleanProjectedSlot.cs
- GetCryptoTransformRequest.cs
- StatusBarItemAutomationPeer.cs
- DataTemplate.cs
- ImageEditor.cs
- ToolStripProgressBar.cs
- MetadataItem_Static.cs
- SerializerWriterEventHandlers.cs
- ProfileModule.cs
- FileAuthorizationModule.cs
- HttpsTransportElement.cs
- FormsAuthenticationTicket.cs
- AppDomainProtocolHandler.cs
- InputGestureCollection.cs
- Sql8ExpressionRewriter.cs
- DataTransferEventArgs.cs
- ValidatedControlConverter.cs
- WebEventCodes.cs
- ReliabilityContractAttribute.cs
- AlphabeticalEnumConverter.cs
- DetailsViewInsertedEventArgs.cs
- DeferredSelectedIndexReference.cs
- SmiContextFactory.cs
- DataGridTablesFactory.cs
- ShaperBuffers.cs
- AdornerPresentationContext.cs
- KeyFrames.cs
- EntityParameterCollection.cs
- RotationValidation.cs
- HttpRuntime.cs
- FtpWebResponse.cs
- IPGlobalProperties.cs
- HttpModuleActionCollection.cs
- Match.cs
- CultureSpecificCharacterBufferRange.cs
- RemoteAsymmetricSignatureFormatter.cs
- JournalEntry.cs
- OAVariantLib.cs
- ValueSerializerAttribute.cs
- DeferredReference.cs
- TreeViewItemAutomationPeer.cs
- EventMappingSettingsCollection.cs
- TdsParserStateObject.cs
- MarkedHighlightComponent.cs
- PageThemeCodeDomTreeGenerator.cs
- PrintingPermission.cs
- Serializer.cs
- InkPresenter.cs
- DragEvent.cs
- AlphabetConverter.cs
- SharedStatics.cs
- UInt32.cs
- SHA384CryptoServiceProvider.cs
- ControlType.cs
- DesignerSerializerAttribute.cs
- SizeAnimationBase.cs
- DiscoveryClientDocuments.cs
- EtwTrace.cs
- LabelEditEvent.cs
- ResourceWriter.cs
- WebScriptMetadataMessage.cs
- WorkflowElementDialog.cs
- ValidatorCollection.cs