Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TransactionFlowOption.cs
- Error.cs
- WorkflowMarkupElementEventArgs.cs
- ValidatorCollection.cs
- TypeReference.cs
- Slider.cs
- HashHelper.cs
- SatelliteContractVersionAttribute.cs
- RegexGroup.cs
- ProcessInputEventArgs.cs
- EdmComplexPropertyAttribute.cs
- DelegateTypeInfo.cs
- SafePointer.cs
- ListBoxItem.cs
- RuntimeCompatibilityAttribute.cs
- RectangleF.cs
- MinMaxParagraphWidth.cs
- HashMembershipCondition.cs
- ComboBoxDesigner.cs
- DropShadowEffect.cs
- WebControl.cs
- CultureSpecificStringDictionary.cs
- BinaryWriter.cs
- PassportAuthentication.cs
- RayHitTestParameters.cs
- NodeFunctions.cs
- DataGridViewSelectedRowCollection.cs
- BitmapScalingModeValidation.cs
- XPathNodeList.cs
- UpDownBase.cs
- DataList.cs
- DownloadProgressEventArgs.cs
- HybridDictionary.cs
- Listbox.cs
- CaseInsensitiveOrdinalStringComparer.cs
- InternalsVisibleToAttribute.cs
- _SSPISessionCache.cs
- InputMethod.cs
- Delay.cs
- Panel.cs
- SQLGuidStorage.cs
- DataRecordObjectView.cs
- Constants.cs
- Int32Converter.cs
- CopyOfAction.cs
- LabelAutomationPeer.cs
- ZipIOExtraFieldPaddingElement.cs
- ReadOnlyPropertyMetadata.cs
- PointLightBase.cs
- BrushValueSerializer.cs
- FillErrorEventArgs.cs
- RefreshEventArgs.cs
- TextRunCacheImp.cs
- ThrowHelper.cs
- OleDbStruct.cs
- ColumnResizeAdorner.cs
- PenLineJoinValidation.cs
- PasswordPropertyTextAttribute.cs
- CreateUserWizardStep.cs
- UnsafeNativeMethods.cs
- BindingOperations.cs
- WebPartCollection.cs
- DBPropSet.cs
- FormsAuthentication.cs
- HMACSHA384.cs
- webeventbuffer.cs
- XmlMemberMapping.cs
- EdmToObjectNamespaceMap.cs
- ReceiveSecurityHeaderElementManager.cs
- DynamicDiscoSearcher.cs
- OleDbParameterCollection.cs
- MarkupCompilePass1.cs
- EditorZone.cs
- ComponentEditorForm.cs
- AssemblyName.cs
- SessionStateModule.cs
- IpcChannelHelper.cs
- XmlSchemaGroup.cs
- RoleBoolean.cs
- ExpressionVisitorHelpers.cs
- ParamArrayAttribute.cs
- LinqDataSourceValidationException.cs
- GenericRootAutomationPeer.cs
- HttpResponseInternalBase.cs
- GeometryModel3D.cs
- ChangeInterceptorAttribute.cs
- DeclaredTypeValidator.cs
- XamlFxTrace.cs
- EntitySet.cs
- TreeViewTemplateSelector.cs
- AsynchronousChannel.cs
- DbConnectionClosed.cs
- Subset.cs
- ProcessModelInfo.cs
- FileLevelControlBuilderAttribute.cs
- CultureInfo.cs
- SafeFileMappingHandle.cs
- DiscoveryRequestHandler.cs
- ConfigurationSectionGroup.cs
- DetailsViewRow.cs