Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Documents / Underline.cs / 1 / Underline.cs
//----------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// Description: Underline element.
// Xaml markup helper for indicating superscript content.
// Equivalent to a Span with TextDecorations property set to TextDecorations.Underlined.
// Can contain other inline elements.
//
//---------------------------------------------------------------------------
namespace System.Windows.Documents
{
///
/// Underline element - markup helper for indicating superscript content.
/// Equivalent to a Span with TextDecorations property set to TextDecorations.Underlined.
/// Can contain other inline elements.
///
public class Underline : Span
{
//-------------------------------------------------------------------
//
// Constructors
//
//-------------------------------------------------------------------
#region Constructors
///
/// Static ctor. Initializes property metadata.
///
static Underline()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(Underline), new FrameworkPropertyMetadata(typeof(Underline)));
}
///
/// Initilizes a new instance of a Underline element
///
///
/// To become fully functional this element requires at least one other Inline element
/// as its child, typically Run with some text.
/// In Xaml markup the UNderline element may appear without Run child,
/// but please note that such Run was implicitly inserted by parser.
///
public Underline() : base()
{
}
///
/// Initializes a new instance of Underline element and adds a given Subscript element as its first child.
///
///
/// Inline element added as an initial child to this Underline element
///
public Underline(Inline childInline) : base(childInline)
{
}
///
/// Creates a new Underline instance.
///
///
/// Optional child Inline for the new Underline. May be null.
///
///
/// Optional position at which to insert the new Underline. May be null.
///
public Underline(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
{
}
///
/// Creates a new Underline instance covering existing content.
///
///
/// Start position of the new Underline.
///
///
/// End position of the new Underline.
///
///
/// start and end must both be parented by the same Paragraph, otherwise
/// the method will raise an ArgumentException.
///
public Underline(TextPointer start, TextPointer end) : base(start, end)
{
}
#endregion Constructors
}
}
// 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
- SortedDictionary.cs
- ConnectionManagementElementCollection.cs
- BCryptHashAlgorithm.cs
- CqlParser.cs
- RemoteWebConfigurationHostStream.cs
- EdmProperty.cs
- SqlCacheDependency.cs
- StyleCollection.cs
- BaseContextMenu.cs
- ActivityCodeDomSerializationManager.cs
- HtmlInputText.cs
- SizeF.cs
- ZoneIdentityPermission.cs
- WSFederationHttpSecurityElement.cs
- XmlArrayAttribute.cs
- ControlPaint.cs
- SoapAttributeAttribute.cs
- IPCCacheManager.cs
- MessageBox.cs
- Stylesheet.cs
- DataException.cs
- MatrixIndependentAnimationStorage.cs
- DurableInstanceProvider.cs
- GridView.cs
- TemplatePropertyEntry.cs
- TranslateTransform3D.cs
- SmiConnection.cs
- LicenseProviderAttribute.cs
- EdgeModeValidation.cs
- MsmqDiagnostics.cs
- Inflater.cs
- XmlSchemaAppInfo.cs
- DiagnosticsConfigurationHandler.cs
- ArgumentDesigner.xaml.cs
- RepeaterCommandEventArgs.cs
- UIPermission.cs
- RenameRuleObjectDialog.Designer.cs
- HttpResponseHeader.cs
- sqlinternaltransaction.cs
- FileEnumerator.cs
- ModuleConfigurationInfo.cs
- MarkupObject.cs
- NewItemsContextMenuStrip.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TrustManager.cs
- TTSEvent.cs
- ObfuscateAssemblyAttribute.cs
- SystemResourceKey.cs
- DeploymentSection.cs
- DashStyle.cs
- TrustManagerMoreInformation.cs
- TextServicesLoader.cs
- TextStore.cs
- WebPartConnectVerb.cs
- ChannelFactory.cs
- OpenTypeCommon.cs
- DirectoryInfo.cs
- AttachmentService.cs
- ByteAnimationUsingKeyFrames.cs
- InvokePattern.cs
- ScriptingJsonSerializationSection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TextMetrics.cs
- TraceListener.cs
- StructureChangedEventArgs.cs
- ProfilePropertyMetadata.cs
- PlainXmlSerializer.cs
- RepeatBehaviorConverter.cs
- ParameterSubsegment.cs
- CodeSnippetStatement.cs
- SafeCryptContextHandle.cs
- IPipelineRuntime.cs
- TaiwanLunisolarCalendar.cs
- BaseHashHelper.cs
- MouseEventArgs.cs
- OutputCacheProfile.cs
- Attribute.cs
- relpropertyhelper.cs
- CodeDefaultValueExpression.cs
- HtmlEmptyTagControlBuilder.cs
- xmlglyphRunInfo.cs
- WindowVisualStateTracker.cs
- Latin1Encoding.cs
- FloatAverageAggregationOperator.cs
- MarshalByValueComponent.cs
- BindingGroup.cs
- TrackPoint.cs
- XmlSchemaAll.cs
- MessageHeaderT.cs
- RectConverter.cs
- DataGridViewRowConverter.cs
- CreateUserWizardStep.cs
- figurelength.cs
- SecurityTimestamp.cs
- Schema.cs
- DataComponentGenerator.cs
- SessionParameter.cs
- SortDescription.cs
- ICspAsymmetricAlgorithm.cs
- Crc32.cs