Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / SelectionHighlightInfo.cs / 1305600 / SelectionHighlightInfo.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: Highlight render properties for selected text.
//
// History:
// 07/01/2004 : [....] - 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 : [....] - 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
- DefaultObjectMappingItemCollection.cs
- CodeSnippetTypeMember.cs
- HGlobalSafeHandle.cs
- SystemIPInterfaceProperties.cs
- CodeExporter.cs
- BindingList.cs
- EdmRelationshipRoleAttribute.cs
- Clipboard.cs
- XmlCollation.cs
- AesCryptoServiceProvider.cs
- SerializationStore.cs
- MultiTouchSystemGestureLogic.cs
- NameSpaceExtractor.cs
- _LocalDataStore.cs
- SizeConverter.cs
- EventRouteFactory.cs
- PresentationAppDomainManager.cs
- XsdCachingReader.cs
- FixedDocumentSequencePaginator.cs
- ReversePositionQuery.cs
- XmlCompatibilityReader.cs
- UndoManager.cs
- TransformerInfoCollection.cs
- DocumentApplicationDocumentViewer.cs
- DoubleSumAggregationOperator.cs
- SplayTreeNode.cs
- ConnectionManagementElement.cs
- PenThreadPool.cs
- DataDocumentXPathNavigator.cs
- EditorZoneBase.cs
- SelectionProcessor.cs
- CharacterString.cs
- PropertyEntry.cs
- InvokerUtil.cs
- SvcMapFile.cs
- PreloadedPackages.cs
- LayoutUtils.cs
- SQLString.cs
- DataServiceRequestOfT.cs
- PreProcessInputEventArgs.cs
- Registry.cs
- Timer.cs
- DrawListViewSubItemEventArgs.cs
- MailDefinition.cs
- MediaTimeline.cs
- ParsedAttributeCollection.cs
- Journal.cs
- XmlNodeChangedEventManager.cs
- DNS.cs
- MessageTransmitTraceRecord.cs
- TemplateBamlTreeBuilder.cs
- WebExceptionStatus.cs
- CodeArgumentReferenceExpression.cs
- TableRow.cs
- EventTrigger.cs
- XmlWellformedWriter.cs
- StructuredTypeEmitter.cs
- CatalogPart.cs
- DiscoveryClient.cs
- RowType.cs
- thaishape.cs
- SqlDataSourceSelectingEventArgs.cs
- WebHeaderCollection.cs
- WebPartCloseVerb.cs
- FocusChangedEventArgs.cs
- DelegatingConfigHost.cs
- DataGridItemEventArgs.cs
- Helper.cs
- FtpWebResponse.cs
- DataGridViewCellLinkedList.cs
- XpsPackagingException.cs
- DelegatingConfigHost.cs
- SmtpReplyReader.cs
- FontCollection.cs
- FrugalList.cs
- TranslateTransform.cs
- IUnknownConstantAttribute.cs
- SmtpException.cs
- CustomErrorCollection.cs
- FilteredDataSetHelper.cs
- SiteMapHierarchicalDataSourceView.cs
- SafeFileHandle.cs
- IpcPort.cs
- ResourceReader.cs
- SourceFileBuildProvider.cs
- Brush.cs
- SqlRowUpdatedEvent.cs
- FilterException.cs
- DispatcherOperation.cs
- BindingWorker.cs
- DataTableReaderListener.cs
- ToolStripGripRenderEventArgs.cs
- Rectangle.cs
- ErrorLog.cs
- TextElementCollection.cs
- ValidationEventArgs.cs
- DbConnectionPoolIdentity.cs
- SessionStateSection.cs
- tooltip.cs
- FixUp.cs