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
- AttachedPropertyDescriptor.cs
- ViewBox.cs
- Exceptions.cs
- PathBox.cs
- DataSetMappper.cs
- ItemAutomationPeer.cs
- MouseEvent.cs
- TransformValueSerializer.cs
- BindingsCollection.cs
- TemplatePropertyEntry.cs
- InsufficientExecutionStackException.cs
- TabOrder.cs
- SmiContextFactory.cs
- util.cs
- EditorPartDesigner.cs
- DataQuery.cs
- VirtualizedItemProviderWrapper.cs
- SoapAttributes.cs
- PointLight.cs
- Timer.cs
- WindowsStreamSecurityBindingElement.cs
- ProgressBarBrushConverter.cs
- ReflectionPermission.cs
- TextParaClient.cs
- DesignerImageAdapter.cs
- ConsoleTraceListener.cs
- EllipticalNodeOperations.cs
- SamlConditions.cs
- StrokeCollectionConverter.cs
- AttributeCollection.cs
- WS2007HttpBindingCollectionElement.cs
- Keywords.cs
- StrokeCollection.cs
- SplitContainer.cs
- DesignBindingPicker.cs
- Table.cs
- AnimationClock.cs
- ConfigsHelper.cs
- PasswordRecovery.cs
- CollectionsUtil.cs
- WebPartConnectionsDisconnectVerb.cs
- Maps.cs
- HttpConfigurationSystem.cs
- SecurityAttributeGenerationHelper.cs
- LicenseProviderAttribute.cs
- ShapingWorkspace.cs
- ViewPort3D.cs
- Transform.cs
- SelectiveScrollingGrid.cs
- DataGridTablesFactory.cs
- ListViewInsertedEventArgs.cs
- PopupEventArgs.cs
- XmlQualifiedName.cs
- CompoundFileDeflateTransform.cs
- BrowsableAttribute.cs
- AffineTransform3D.cs
- KnownBoxes.cs
- DesignTimeXamlWriter.cs
- SimpleWebHandlerParser.cs
- WindowInteractionStateTracker.cs
- CheckBoxList.cs
- WebPartDescriptionCollection.cs
- ControlParameter.cs
- ServerIdentity.cs
- DataGridViewCellStateChangedEventArgs.cs
- FileDocument.cs
- ProviderMetadataCachedInformation.cs
- ConditionalDesigner.cs
- _NegoState.cs
- JsonFormatGeneratorStatics.cs
- ObjectNavigationPropertyMapping.cs
- ScriptControl.cs
- Positioning.cs
- AxImporter.cs
- TypedElement.cs
- SqlBulkCopyColumnMappingCollection.cs
- EncryptedReference.cs
- ReaderWriterLockWrapper.cs
- OracleNumber.cs
- CatalogPart.cs
- CLSCompliantAttribute.cs
- QuaternionKeyFrameCollection.cs
- SiteIdentityPermission.cs
- DecimalAnimationUsingKeyFrames.cs
- GetMemberBinder.cs
- NamedObject.cs
- ToolStripItemClickedEventArgs.cs
- KeyInfo.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SaveFileDialog.cs
- SerializationInfoEnumerator.cs
- PaintEvent.cs
- CommandEventArgs.cs
- SQLBytesStorage.cs
- TraceSection.cs
- ZoneLinkButton.cs
- MobileControlsSectionHelper.cs
- StateDesigner.TransitionInfo.cs
- DbConnectionPool.cs
- UniqueConstraint.cs