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
- NumberSubstitution.cs
- ObjectView.cs
- ControlCachePolicy.cs
- LoopExpression.cs
- DataGridViewBand.cs
- RSAOAEPKeyExchangeFormatter.cs
- SEHException.cs
- NetCodeGroup.cs
- QuaternionRotation3D.cs
- HttpApplicationFactory.cs
- BitmapCodecInfo.cs
- EventSinkHelperWriter.cs
- HandleValueEditor.cs
- BaseValidatorDesigner.cs
- IncrementalReadDecoders.cs
- PointAnimationUsingKeyFrames.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- BinaryCommonClasses.cs
- Win32KeyboardDevice.cs
- CodeComment.cs
- XmlSchemaSimpleTypeList.cs
- ClientBuildManagerCallback.cs
- DelayLoadType.cs
- TextDecorations.cs
- MimeWriter.cs
- Int32Storage.cs
- UpdateCommand.cs
- DtdParser.cs
- Dictionary.cs
- MimeMapping.cs
- HtmlElementEventArgs.cs
- ChildDocumentBlock.cs
- PostBackOptions.cs
- PeerDuplexChannelListener.cs
- TemplatedControlDesigner.cs
- StorageFunctionMapping.cs
- ObjectDataSourceFilteringEventArgs.cs
- DropDownList.cs
- MessagePartDescriptionCollection.cs
- TextDecorationLocationValidation.cs
- ColorBlend.cs
- SoapClientProtocol.cs
- DataTransferEventArgs.cs
- DateTimeFormatInfoScanner.cs
- CommonObjectSecurity.cs
- TemplatePagerField.cs
- MimeBasePart.cs
- XmlComplianceUtil.cs
- ButtonPopupAdapter.cs
- StructuredTypeEmitter.cs
- TextWriterTraceListener.cs
- IndexedSelectQueryOperator.cs
- AppSettingsExpressionBuilder.cs
- StorageMappingFragment.cs
- RectAnimationClockResource.cs
- Sequence.cs
- HwndSubclass.cs
- Command.cs
- SqlConnectionManager.cs
- OneWayChannelListener.cs
- ControlAdapter.cs
- DiscoveryClientDocuments.cs
- ExtensionDataObject.cs
- FixedTextPointer.cs
- RowUpdatedEventArgs.cs
- EntityDataSourceContextDisposingEventArgs.cs
- DataSourceGeneratorException.cs
- AndMessageFilter.cs
- Wildcard.cs
- TreeBuilderBamlTranslator.cs
- OutgoingWebResponseContext.cs
- ReceiveMessageRecord.cs
- GridViewAutomationPeer.cs
- BindingExpressionBase.cs
- CellCreator.cs
- EdmMember.cs
- UserControlAutomationPeer.cs
- GenericPrincipal.cs
- MessageSmuggler.cs
- Span.cs
- WindowsRegion.cs
- CollectionBase.cs
- UnionExpr.cs
- securitymgrsite.cs
- SqlNodeAnnotations.cs
- BulletedList.cs
- Unit.cs
- TextElement.cs
- OAVariantLib.cs
- DynamicValueConverter.cs
- ScriptDescriptor.cs
- HtmlInputText.cs
- Int32CollectionConverter.cs
- SafeNativeHandle.cs
- DoubleAnimationUsingPath.cs
- PasswordPropertyTextAttribute.cs
- ObjectListField.cs
- Pkcs9Attribute.cs
- StaticTextPointer.cs
- SqlDataSourceEnumerator.cs