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
- TypeUtils.cs
- GridProviderWrapper.cs
- Substitution.cs
- ConfigUtil.cs
- CustomAttribute.cs
- InheritedPropertyChangedEventArgs.cs
- webproxy.cs
- hresults.cs
- GroupStyle.cs
- CodeTypeDeclaration.cs
- PictureBoxDesigner.cs
- SqlDataSourceEnumerator.cs
- RepeaterItemCollection.cs
- StringUtil.cs
- HelpInfo.cs
- WhileDesigner.xaml.cs
- AdRotator.cs
- PackWebResponse.cs
- StateDesignerConnector.cs
- WebBrowserSiteBase.cs
- XPathDocument.cs
- NameValuePermission.cs
- HandlerBase.cs
- RadioButton.cs
- ExpressionConverter.cs
- UIElementPropertyUndoUnit.cs
- MethodToken.cs
- Parameter.cs
- GraphicsPathIterator.cs
- HttpVersion.cs
- BooleanAnimationBase.cs
- RC2CryptoServiceProvider.cs
- MappingItemCollection.cs
- NavigationWindow.cs
- ToolStripMenuItemDesigner.cs
- SrgsElement.cs
- HttpServerVarsCollection.cs
- DataBoundControl.cs
- TableTextElementCollectionInternal.cs
- ThemeDictionaryExtension.cs
- ContextMenuService.cs
- KeysConverter.cs
- XmlUnspecifiedAttribute.cs
- FontEditor.cs
- _WebProxyDataBuilder.cs
- KeyboardEventArgs.cs
- SignatureToken.cs
- ScriptingRoleServiceSection.cs
- DefaultPrintController.cs
- EventSinkHelperWriter.cs
- WsdlInspector.cs
- WindowsRebar.cs
- FileUtil.cs
- Button.cs
- QueryOptionExpression.cs
- Native.cs
- AdjustableArrowCap.cs
- ObjectItemConventionAssemblyLoader.cs
- XomlCompilerParameters.cs
- SchemaElementDecl.cs
- Image.cs
- XhtmlBasicSelectionListAdapter.cs
- CodeTryCatchFinallyStatement.cs
- Types.cs
- RenamedEventArgs.cs
- UnregisterInfo.cs
- NaturalLanguageHyphenator.cs
- PropertyItem.cs
- ManagementOperationWatcher.cs
- WebDisplayNameAttribute.cs
- ErrorHandler.cs
- FastPropertyAccessor.cs
- EntityDataSourceMemberPath.cs
- PopupRoot.cs
- OperandQuery.cs
- XPathParser.cs
- XmlBinaryWriterSession.cs
- ProtocolsConfigurationHandler.cs
- DefaultValidator.cs
- RC2.cs
- CfgParser.cs
- RuntimeConfigLKG.cs
- XmlWhitespace.cs
- ParsedRoute.cs
- SspiSafeHandles.cs
- _NetworkingPerfCounters.cs
- MultiPageTextView.cs
- Menu.cs
- GetPageCompletedEventArgs.cs
- MobileUITypeEditor.cs
- EventListener.cs
- Win32Native.cs
- DataRowComparer.cs
- Literal.cs
- DocumentPageViewAutomationPeer.cs
- NullableFloatAverageAggregationOperator.cs
- NullRuntimeConfig.cs
- CompositeCollection.cs
- AsymmetricSignatureDeformatter.cs
- SQLBytes.cs