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
- FunctionImportMapping.cs
- TransactionScopeDesigner.cs
- SourceExpressionException.cs
- HandlerWithFactory.cs
- ImageConverter.cs
- SQlBooleanStorage.cs
- SpinLock.cs
- HiddenField.cs
- BitmapEffectInput.cs
- NavigationWindow.cs
- TagMapInfo.cs
- Currency.cs
- GeneralTransform3D.cs
- ConfigXmlWhitespace.cs
- DataAdapter.cs
- LineGeometry.cs
- KerberosTicketHashIdentifierClause.cs
- PriorityItem.cs
- FocusManager.cs
- FileInfo.cs
- AssemblyHash.cs
- DefaultHttpHandler.cs
- PlatformNotSupportedException.cs
- NamespaceQuery.cs
- ToolStripDropDown.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- WebServiceErrorEvent.cs
- ConstructorBuilder.cs
- ContentDisposition.cs
- future.cs
- TdsParameterSetter.cs
- NameValueCollection.cs
- HandlerBase.cs
- ContactManager.cs
- DataKeyArray.cs
- HandlerBase.cs
- AstTree.cs
- __ComObject.cs
- LinkConverter.cs
- EdmEntityTypeAttribute.cs
- Menu.cs
- MarkupObject.cs
- SqlProvider.cs
- ActivityPreviewDesigner.cs
- AssemblyHelper.cs
- SettingsBindableAttribute.cs
- WebPartCatalogAddVerb.cs
- StackOverflowException.cs
- DocumentViewerHelper.cs
- SafeNativeMethods.cs
- ImageSourceConverter.cs
- SqlExpander.cs
- AsyncStreamReader.cs
- mediaeventargs.cs
- Error.cs
- glyphs.cs
- HtmlInputButton.cs
- TextShapeableCharacters.cs
- FaultImportOptions.cs
- UnSafeCharBuffer.cs
- RowUpdatedEventArgs.cs
- XmlSchemaSimpleTypeUnion.cs
- MonitorWrapper.cs
- SettingsPropertyValueCollection.cs
- ComponentManagerBroker.cs
- HostDesigntimeLicenseContext.cs
- RegistryKey.cs
- TraceSection.cs
- _OverlappedAsyncResult.cs
- ProfileSettingsCollection.cs
- SchemaExporter.cs
- EditorPartCollection.cs
- FixedSOMGroup.cs
- MimeMultiPart.cs
- FlowDocumentReaderAutomationPeer.cs
- OdbcConnectionString.cs
- Globals.cs
- BrowserCapabilitiesCompiler.cs
- ColorMap.cs
- UserControl.cs
- HiddenField.cs
- ActiveXHost.cs
- DataGridViewRowCancelEventArgs.cs
- TaskFileService.cs
- TextBox.cs
- CryptoProvider.cs
- ToolStripSettings.cs
- PenThreadWorker.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- XmlSchemaSet.cs
- WebBrowserNavigatedEventHandler.cs
- BaseDataListComponentEditor.cs
- StoryFragments.cs
- PolyBezierSegment.cs
- DataGridColumn.cs
- OpenCollectionAsyncResult.cs
- ImageList.cs
- Win32.cs
- NullableLongSumAggregationOperator.cs
- ReadOnlyDataSourceView.cs