Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CancellationToken.cs
- DockPanel.cs
- CatalogPartCollection.cs
- CloudCollection.cs
- SelectionBorderGlyph.cs
- SafeThreadHandle.cs
- TargetConverter.cs
- RowToParametersTransformer.cs
- CheckBoxField.cs
- Bookmark.cs
- FlowDocumentFormatter.cs
- EventLogRecord.cs
- DataTableReader.cs
- DataGridColumnReorderingEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- DataGridViewCellEventArgs.cs
- AssertUtility.cs
- BasicViewGenerator.cs
- GeneralTransformGroup.cs
- SpeechUI.cs
- RoutedEventConverter.cs
- ParentQuery.cs
- RegisteredArrayDeclaration.cs
- UshortList2.cs
- MobileTextWriter.cs
- MatchingStyle.cs
- SqlUtils.cs
- GridViewRowPresenter.cs
- SafeFileMappingHandle.cs
- Executor.cs
- SqlDataSourceFilteringEventArgs.cs
- DataGridViewRowStateChangedEventArgs.cs
- FileReservationCollection.cs
- DbExpressionRules.cs
- AccessText.cs
- InternalSafeNativeMethods.cs
- xmlsaver.cs
- ContextMarshalException.cs
- CodeAssignStatement.cs
- LocationInfo.cs
- EncryptedXml.cs
- ExpressionBuilder.cs
- DebuggerAttributes.cs
- DataServiceBuildProvider.cs
- IDQuery.cs
- ThreadPool.cs
- EntityViewGenerationAttribute.cs
- SchemaEntity.cs
- XmlSignificantWhitespace.cs
- DrawingGroupDrawingContext.cs
- HMACSHA256.cs
- NameValueCollection.cs
- FunctionQuery.cs
- ObjectDataSourceMethodEditor.cs
- EntityContainer.cs
- Assert.cs
- MatrixTransform3D.cs
- IDQuery.cs
- NamedPipeConnectionPool.cs
- QilCloneVisitor.cs
- IntersectQueryOperator.cs
- ProtectedProviderSettings.cs
- CodeGen.cs
- DescendantQuery.cs
- EtwTrackingParticipant.cs
- SourceItem.cs
- AssertHelper.cs
- BitSet.cs
- ButtonField.cs
- IOThreadScheduler.cs
- GregorianCalendar.cs
- BitmapFrameEncode.cs
- ModuleBuilderData.cs
- Region.cs
- WindowVisualStateTracker.cs
- ComponentCodeDomSerializer.cs
- ValidationUtility.cs
- DbgUtil.cs
- DiscoveryClient.cs
- ResourcesBuildProvider.cs
- HttpApplicationStateWrapper.cs
- MaterialCollection.cs
- Journaling.cs
- X509IssuerSerialKeyIdentifierClause.cs
- RenderTargetBitmap.cs
- DynamicResourceExtension.cs
- FontConverter.cs
- ConfigurationValue.cs
- HMACRIPEMD160.cs
- ResetableIterator.cs
- WindowInteractionStateTracker.cs
- OleDbWrapper.cs
- MediaScriptCommandRoutedEventArgs.cs
- XmlChildEnumerator.cs
- BufferedGraphics.cs
- XmlnsDictionary.cs
- Exceptions.cs
- dbdatarecord.cs
- ListViewDataItem.cs
- SwitchLevelAttribute.cs