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
- FolderBrowserDialog.cs
- Classification.cs
- ThreadAbortException.cs
- XmlSerializationWriter.cs
- ChildTable.cs
- SEHException.cs
- HebrewNumber.cs
- TextRange.cs
- Margins.cs
- _ListenerRequestStream.cs
- ChannelManager.cs
- TabControlEvent.cs
- SqlDataSourceSummaryPanel.cs
- CatalogPart.cs
- StructuredTypeEmitter.cs
- RuleProcessor.cs
- SafeCertificateStore.cs
- MetaModel.cs
- ExpressionVisitor.cs
- CalendarBlackoutDatesCollection.cs
- BitmapCodecInfoInternal.cs
- CharEnumerator.cs
- InheritedPropertyChangedEventArgs.cs
- FlowLayoutSettings.cs
- WebCategoryAttribute.cs
- SafeCryptHandles.cs
- CssStyleCollection.cs
- UnsafeNativeMethods.cs
- MoveSizeWinEventHandler.cs
- DefaultExpression.cs
- BitHelper.cs
- PageWrapper.cs
- DataGridViewCellEventArgs.cs
- XmlProcessingInstruction.cs
- DetailsViewInsertedEventArgs.cs
- SymbolEqualComparer.cs
- XmlSchemaSet.cs
- RowTypePropertyElement.cs
- ToolStripGrip.cs
- Typography.cs
- DeflateStream.cs
- CharAnimationBase.cs
- Enum.cs
- SerializationFieldInfo.cs
- MobileControlDesigner.cs
- GeometryHitTestResult.cs
- DefaultHttpHandler.cs
- SerializationInfo.cs
- TemplateLookupAction.cs
- ValueExpressions.cs
- HebrewNumber.cs
- GZipDecoder.cs
- AuthenticationManager.cs
- AutoSizeToolBoxItem.cs
- CommittableTransaction.cs
- EventProviderWriter.cs
- ConnectionStringsExpressionEditor.cs
- OperatingSystem.cs
- SoapAttributes.cs
- DependencyObjectValidator.cs
- RequestChannel.cs
- ThreadExceptionDialog.cs
- TableLayoutSettings.cs
- RequestNavigateEventArgs.cs
- GlobalizationSection.cs
- ModuleBuilderData.cs
- wgx_render.cs
- DaylightTime.cs
- BasicExpressionVisitor.cs
- IDictionary.cs
- Crc32Helper.cs
- SmiEventSink.cs
- BamlLocalizer.cs
- Literal.cs
- BidPrivateBase.cs
- Adorner.cs
- CompilationRelaxations.cs
- ConnectionPoolManager.cs
- VisualStateManager.cs
- Part.cs
- DataColumnCollection.cs
- _ConnectOverlappedAsyncResult.cs
- OleDbMetaDataFactory.cs
- SqlDataSourceCommandEventArgs.cs
- PerformanceCounterTraceRecord.cs
- BitmapEffectInputData.cs
- StylusPointPropertyId.cs
- FrugalList.cs
- XPathPatternBuilder.cs
- GroupAggregateExpr.cs
- EncodingStreamWrapper.cs
- AspCompat.cs
- SortFieldComparer.cs
- XpsThumbnail.cs
- SkewTransform.cs
- BufferModesCollection.cs
- TraceSection.cs
- ZipIOLocalFileBlock.cs
- AuthStoreRoleProvider.cs
- _NTAuthentication.cs