Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / Bold.cs / 1305600 / 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
- SqlAggregateChecker.cs
- AuthenticatedStream.cs
- DbParameterCollectionHelper.cs
- WebPartDescriptionCollection.cs
- DBSqlParserColumnCollection.cs
- RegisteredScript.cs
- PackageProperties.cs
- HyperLinkField.cs
- SafeNativeMemoryHandle.cs
- RulePatternOps.cs
- ConfigurationSection.cs
- TextTreeDeleteContentUndoUnit.cs
- MatrixKeyFrameCollection.cs
- MemberAccessException.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- BindingSource.cs
- SchemaLookupTable.cs
- RootBrowserWindowProxy.cs
- PropertyGeneratedEventArgs.cs
- DynamicResourceExtension.cs
- WebSysDisplayNameAttribute.cs
- MenuItemBinding.cs
- XmlParserContext.cs
- DurableInstancingOptions.cs
- RecognizedAudio.cs
- ListControlActionList.cs
- HitTestWithPointDrawingContextWalker.cs
- MDIWindowDialog.cs
- ValidatorCollection.cs
- CodeGenerator.cs
- TableItemProviderWrapper.cs
- SmiSettersStream.cs
- PanelDesigner.cs
- EntityViewGenerator.cs
- DataGridRowAutomationPeer.cs
- MergeFilterQuery.cs
- Membership.cs
- CodeLabeledStatement.cs
- Logging.cs
- embossbitmapeffect.cs
- Keyboard.cs
- _ListenerRequestStream.cs
- DESCryptoServiceProvider.cs
- Sql8ConformanceChecker.cs
- Component.cs
- TypeUsageBuilder.cs
- PrivilegedConfigurationManager.cs
- ValidatorCollection.cs
- DefaultSection.cs
- AnnotationService.cs
- TemplateParser.cs
- ChtmlTextWriter.cs
- DesignerLoader.cs
- CallTemplateAction.cs
- MaterialCollection.cs
- ServiceThrottlingElement.cs
- ColumnMapVisitor.cs
- SqlDataSourceQuery.cs
- SwitchElementsCollection.cs
- GridEntryCollection.cs
- SHA1CryptoServiceProvider.cs
- CqlGenerator.cs
- ComboBoxDesigner.cs
- ExtentKey.cs
- RenderTargetBitmap.cs
- MultiTrigger.cs
- TypeSemantics.cs
- InvalidComObjectException.cs
- BevelBitmapEffect.cs
- WCFBuildProvider.cs
- RelationshipConstraintValidator.cs
- SelectionRange.cs
- ConfigurationException.cs
- ConnectionPoint.cs
- HeaderFilter.cs
- Pen.cs
- ArrayTypeMismatchException.cs
- FunctionCommandText.cs
- DynamicDataExtensions.cs
- PipelineComponent.cs
- CommonGetThemePartSize.cs
- BamlResourceContent.cs
- AsymmetricCryptoHandle.cs
- RegexReplacement.cs
- ToggleButtonAutomationPeer.cs
- StylusPointCollection.cs
- InfoCardSymmetricAlgorithm.cs
- Setter.cs
- ToolStripArrowRenderEventArgs.cs
- CompositeTypefaceMetrics.cs
- InitializerFacet.cs
- BitStream.cs
- MarkedHighlightComponent.cs
- oledbmetadatacolumnnames.cs
- Utils.cs
- BamlVersionHeader.cs
- Rotation3DKeyFrameCollection.cs
- SizeChangedEventArgs.cs
- ToolStripRenderEventArgs.cs
- SyntaxCheck.cs