Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Documents / Bold.cs / 1 / Bold.cs
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// Description: Bold element.
// Xaml markup helper for indicating bolded content.
// Equivalent to a Span with FontWeight property set to FontWeights.Bold.
// Can contain other inline elements.
//
//---------------------------------------------------------------------------
namespace System.Windows.Documents
{
///
/// Bold element - markup helper for indicating bolded content.
/// Equivalent to a Span with FontWeight property set to FontWeights.Bold.
/// Can contain other inline elements.
///
public class Bold : Span
{
//-------------------------------------------------------------------
//
// Connstructors
//
//-------------------------------------------------------------------
#region Constructors
///
/// Static ctor. Initializes property metadata.
///
static Bold()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(Bold), new FrameworkPropertyMetadata(typeof(Bold)));
}
///
/// Initilizes a new instance of a Bold 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 Bold element may appear without Run child,
/// but please note that such Run was implicitly inserted by parser.
///
public Bold() : base()
{
}
///
/// Initializes a new instance of Bold element and adds a given Inline element as its first child.
///
///
/// Inline element added as an initial child to this Bold element
///
public Bold(Inline childInline) : base(childInline)
{
}
///
/// Creates a new Bold instance.
///
///
/// Optional child Inline for the new Bold. May be null.
///
///
/// Optional position at which to insert the new Bold. May be null.
///
public Bold(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
{
}
///
/// Creates a new Span instance covering existing content.
///
///
/// Start position of the new Span.
///
///
/// End position of the new Span.
///
///
/// start and end must both be parented by the same Paragraph, otherwise
/// the method will raise an ArgumentException.
///
public Bold(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
- Panel.cs
- SimpleApplicationHost.cs
- XmlValueConverter.cs
- TypeHelpers.cs
- SoapSchemaImporter.cs
- SafeCertificateContext.cs
- PointLightBase.cs
- OletxTransactionManager.cs
- TextLineBreak.cs
- LightweightEntityWrapper.cs
- UserControl.cs
- TextEndOfLine.cs
- TransformProviderWrapper.cs
- CustomExpressionEventArgs.cs
- TdsParserStateObject.cs
- MultiView.cs
- Decimal.cs
- SafeRightsManagementEnvironmentHandle.cs
- AmbientProperties.cs
- CounterSample.cs
- PathBox.cs
- WebScriptEndpointElement.cs
- Point.cs
- ContextQuery.cs
- StoragePropertyMapping.cs
- DataGridViewTextBoxCell.cs
- RectAnimationBase.cs
- SmiEventSink_DeferedProcessing.cs
- BamlTreeMap.cs
- DataMemberAttribute.cs
- MarkupObject.cs
- MediaElement.cs
- Rotation3DAnimationUsingKeyFrames.cs
- AutoResetEvent.cs
- Number.cs
- Action.cs
- PrincipalPermission.cs
- DecoderExceptionFallback.cs
- SmiXetterAccessMap.cs
- CryptoStream.cs
- XmlEncodedRawTextWriter.cs
- PositiveTimeSpanValidator.cs
- UnsafeNativeMethodsMilCoreApi.cs
- DesignerMetadata.cs
- PageFunction.cs
- HttpPostedFileBase.cs
- ElementMarkupObject.cs
- PermissionToken.cs
- XmlDocumentFieldSchema.cs
- CalendarDayButton.cs
- GeneralTransform3D.cs
- NullableDecimalMinMaxAggregationOperator.cs
- HttpVersion.cs
- ContextMenu.cs
- DesignerSelectionListAdapter.cs
- SubclassTypeValidator.cs
- MouseEvent.cs
- StandardOleMarshalObject.cs
- CompositeScriptReferenceEventArgs.cs
- _FtpControlStream.cs
- DependencyPropertyConverter.cs
- SmiTypedGetterSetter.cs
- DebugInfo.cs
- ManipulationDevice.cs
- ActivationArguments.cs
- Rect.cs
- PageThemeCodeDomTreeGenerator.cs
- X509SecurityToken.cs
- CrossAppDomainChannel.cs
- InputScope.cs
- Maps.cs
- EventEntry.cs
- BindingContext.cs
- CategoryEditor.cs
- PrintingPermission.cs
- ImmutableDispatchRuntime.cs
- PointLightBase.cs
- EnumValAlphaComparer.cs
- WorkflowEnvironment.cs
- PropertiesTab.cs
- StylusPointProperties.cs
- Panel.cs
- TabItem.cs
- TextSpanModifier.cs
- Matrix.cs
- XslTransform.cs
- TextServicesManager.cs
- PhonemeConverter.cs
- DataControlPagerLinkButton.cs
- ContainerAction.cs
- CollaborationHelperFunctions.cs
- HtmlSelect.cs
- WorkflowRuntimeServiceElement.cs
- MultipartContentParser.cs
- NetworkCredential.cs
- SynchronousChannelMergeEnumerator.cs
- SiteMapDataSourceView.cs
- XmlDocumentType.cs
- ZipIOExtraField.cs
- ActivityDesignerHelper.cs