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
- DeliveryRequirementsAttribute.cs
- XmlNodeChangedEventArgs.cs
- VisualState.cs
- NamedServiceModelExtensionCollectionElement.cs
- PartialCachingControl.cs
- SwitchCase.cs
- DbParameterCollectionHelper.cs
- NumericUpDownAccelerationCollection.cs
- UnsafeNativeMethods.cs
- InputLanguageManager.cs
- DataColumnCollection.cs
- RC2CryptoServiceProvider.cs
- DataViewSettingCollection.cs
- RequiredAttributeAttribute.cs
- HTTPNotFoundHandler.cs
- Exceptions.cs
- HttpApplicationFactory.cs
- UriTemplatePathSegment.cs
- KeyGestureConverter.cs
- ClearCollection.cs
- AuthenticatingEventArgs.cs
- ToolboxItemCollection.cs
- StateManager.cs
- Translator.cs
- TakeQueryOptionExpression.cs
- SerializationObjectManager.cs
- TransformedBitmap.cs
- TempEnvironment.cs
- MemoryResponseElement.cs
- GridViewRowEventArgs.cs
- ImportException.cs
- CompilerTypeWithParams.cs
- EncryptedData.cs
- QueryHandler.cs
- UniqueEventHelper.cs
- StyleSheet.cs
- Random.cs
- MethodCallTranslator.cs
- XmlCustomFormatter.cs
- SafeProcessHandle.cs
- DeleteHelper.cs
- QueueAccessMode.cs
- ResourceDictionary.cs
- GridViewHeaderRowPresenter.cs
- BooleanFunctions.cs
- DBBindings.cs
- DatePickerAutomationPeer.cs
- ClientData.cs
- QuotaThrottle.cs
- CookieParameter.cs
- FormatConvertedBitmap.cs
- CachingHintValidation.cs
- ImageMetadata.cs
- EdmItemCollection.cs
- TabletDevice.cs
- SessionIDManager.cs
- SequenceDesigner.cs
- EpmCustomContentDeSerializer.cs
- NativeMethodsCLR.cs
- WindowsContainer.cs
- SerialReceived.cs
- BinHexEncoder.cs
- DBConnectionString.cs
- ItemMap.cs
- ModifierKeysConverter.cs
- ContactManager.cs
- View.cs
- ConfigPathUtility.cs
- InternalSafeNativeMethods.cs
- StorageAssociationSetMapping.cs
- ThousandthOfEmRealDoubles.cs
- RoutedUICommand.cs
- KoreanCalendar.cs
- ProcessModelInfo.cs
- Timeline.cs
- TerminatingOperationBehavior.cs
- MessageSecurityVersionConverter.cs
- WindowsGraphics.cs
- ChtmlMobileTextWriter.cs
- DataGridColumnHeader.cs
- ExpressionBindings.cs
- FileEnumerator.cs
- MethodRental.cs
- Blend.cs
- OdbcStatementHandle.cs
- TemplateParser.cs
- VideoDrawing.cs
- PageCatalogPart.cs
- SqlGenerator.cs
- DbXmlEnabledProviderManifest.cs
- SourceInterpreter.cs
- SkewTransform.cs
- ToggleProviderWrapper.cs
- MetadataArtifactLoaderResource.cs
- Rect3D.cs
- EnumValAlphaComparer.cs
- GatewayIPAddressInformationCollection.cs
- Color.cs
- TransactedBatchContext.cs
- AutoResizedEvent.cs