Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / Italic.cs / 1305600 / Italic.cs
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// Description: Italic element.
// Xaml markup helper for indicating italicized content.
// Equivalent to a Span with FontStyle property set to FontStyles.Italic.
// Can contain other inline elements.
//
//---------------------------------------------------------------------------
namespace System.Windows.Documents
{
///
/// Italic element - markup helper for indicating italicized content.
/// Equivalent to a Span with FontStyle property set to FontStyles.Italic.
/// Can contain other inline elements.
///
public class Italic : Span
{
//-------------------------------------------------------------------
//
// Connstructors
//
//-------------------------------------------------------------------
#region Constructors
///
/// Static ctor. Initializes property metadata.
///
static Italic()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(Italic), new FrameworkPropertyMetadata(typeof(Italic)));
}
///
/// Initilizes a new instance of a Italic 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 Italic element may appear without Run child,
/// but please note that such Run was implicitly inserted by parser.
///
public Italic() : base()
{
}
///
/// Initializes a new instance of Italic element and adds a given Inline element as its first child.
///
///
/// Inline element added as an initial child to this Italic element
///
public Italic(Inline childInline) : base(childInline)
{
}
///
/// Creates a new Italic instance.
///
///
/// Optional child Inline for the new Italic. May be null.
///
///
/// Optional position at which to insert the new Italic. May be null.
///
public Italic(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
{
}
///
/// Creates a new Italic instance covering existing content.
///
///
/// Start position of the new Italic.
///
///
/// End position of the new Italic.
///
///
/// start and end must both be parented by the same Paragraph, otherwise
/// the method will raise an ArgumentException.
///
public Italic(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.
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// Description: Italic element.
// Xaml markup helper for indicating italicized content.
// Equivalent to a Span with FontStyle property set to FontStyles.Italic.
// Can contain other inline elements.
//
//---------------------------------------------------------------------------
namespace System.Windows.Documents
{
///
/// Italic element - markup helper for indicating italicized content.
/// Equivalent to a Span with FontStyle property set to FontStyles.Italic.
/// Can contain other inline elements.
///
public class Italic : Span
{
//-------------------------------------------------------------------
//
// Connstructors
//
//-------------------------------------------------------------------
#region Constructors
///
/// Static ctor. Initializes property metadata.
///
static Italic()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(Italic), new FrameworkPropertyMetadata(typeof(Italic)));
}
///
/// Initilizes a new instance of a Italic 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 Italic element may appear without Run child,
/// but please note that such Run was implicitly inserted by parser.
///
public Italic() : base()
{
}
///
/// Initializes a new instance of Italic element and adds a given Inline element as its first child.
///
///
/// Inline element added as an initial child to this Italic element
///
public Italic(Inline childInline) : base(childInline)
{
}
///
/// Creates a new Italic instance.
///
///
/// Optional child Inline for the new Italic. May be null.
///
///
/// Optional position at which to insert the new Italic. May be null.
///
public Italic(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
{
}
///
/// Creates a new Italic instance covering existing content.
///
///
/// Start position of the new Italic.
///
///
/// End position of the new Italic.
///
///
/// start and end must both be parented by the same Paragraph, otherwise
/// the method will raise an ArgumentException.
///
public Italic(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
- Context.cs
- SqlServices.cs
- DecimalAnimationUsingKeyFrames.cs
- SQLConvert.cs
- XmlSerializerNamespaces.cs
- ImmutableObjectAttribute.cs
- StreamFormatter.cs
- BufferedGraphicsManager.cs
- SizeChangedEventArgs.cs
- StorageEntityContainerMapping.cs
- VirtualPath.cs
- OpenFileDialog.cs
- PageParser.cs
- QueryableDataSourceEditData.cs
- SecurityKeyIdentifier.cs
- TextTreeText.cs
- CalendarButton.cs
- ProtocolElement.cs
- Bitmap.cs
- KeyGestureConverter.cs
- Marshal.cs
- ChannelProtectionRequirements.cs
- ActionFrame.cs
- Module.cs
- HwndHost.cs
- MatrixTransform3D.cs
- BitSet.cs
- SoapAttributes.cs
- PeerToPeerException.cs
- CssTextWriter.cs
- StaticResourceExtension.cs
- DependencyPropertyConverter.cs
- Command.cs
- HMACRIPEMD160.cs
- OleDbDataReader.cs
- ReflectPropertyDescriptor.cs
- WebZone.cs
- PropertyGrid.cs
- Decoder.cs
- assertwrapper.cs
- Base64Decoder.cs
- DynamicQueryableWrapper.cs
- ArrayElementGridEntry.cs
- AppSettingsReader.cs
- DictionaryEntry.cs
- CollectionsUtil.cs
- COM2ICategorizePropertiesHandler.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- UpdateRecord.cs
- DesignerDataSourceView.cs
- ActivityStateQuery.cs
- AffineTransform3D.cs
- VerificationAttribute.cs
- NotSupportedException.cs
- SByte.cs
- ListParaClient.cs
- SponsorHelper.cs
- _ChunkParse.cs
- TimeSpanHelper.cs
- OperandQuery.cs
- DbTypeMap.cs
- Merger.cs
- Geometry3D.cs
- ModuleElement.cs
- ToolStripItemRenderEventArgs.cs
- EntityTransaction.cs
- CfgParser.cs
- Events.cs
- Menu.cs
- VirtualDirectoryMappingCollection.cs
- Baml6Assembly.cs
- NegotiateStream.cs
- SqlTrackingService.cs
- LinqToSqlWrapper.cs
- InstanceKey.cs
- DataGridViewCellValidatingEventArgs.cs
- PerformanceCounterLib.cs
- IApplicationTrustManager.cs
- GroupItemAutomationPeer.cs
- WebException.cs
- ISCIIEncoding.cs
- SortQuery.cs
- ListViewEditEventArgs.cs
- WmlLabelAdapter.cs
- QilSortKey.cs
- PaginationProgressEventArgs.cs
- MembershipSection.cs
- SamlConditions.cs
- HeaderedContentControl.cs
- SortDescription.cs
- StringConverter.cs
- TypedElement.cs
- TokenBasedSet.cs
- TableSectionStyle.cs
- BaseCodeDomTreeGenerator.cs
- XmlTextReader.cs
- LocalizationParserHooks.cs
- UserControl.cs
- PaperSource.cs
- HebrewNumber.cs