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
- ObjectListTitleAttribute.cs
- DataGridPagerStyle.cs
- Mapping.cs
- AppDomainAttributes.cs
- TaskFormBase.cs
- WebPartDisplayModeCollection.cs
- VectorKeyFrameCollection.cs
- RbTree.cs
- Monitor.cs
- PropertyRecord.cs
- ConfigLoader.cs
- NotificationContext.cs
- ArraySortHelper.cs
- ThreadAbortException.cs
- BindingNavigator.cs
- WorkflowEventArgs.cs
- WebBrowserUriTypeConverter.cs
- TextTreeUndo.cs
- SerializationInfoEnumerator.cs
- SelectionPattern.cs
- LiteralLink.cs
- returneventsaver.cs
- DBBindings.cs
- UnregisterInfo.cs
- PromptEventArgs.cs
- ObjectManager.cs
- ServiceModelConfigurationSectionGroup.cs
- DesignerEditorPartChrome.cs
- TableCell.cs
- GACIdentityPermission.cs
- BasicExpandProvider.cs
- SQLCharsStorage.cs
- DnsPermission.cs
- RoutingChannelExtension.cs
- RoleManagerEventArgs.cs
- QilGeneratorEnv.cs
- Deflater.cs
- View.cs
- EndpointDiscoveryMetadata.cs
- HScrollProperties.cs
- AsyncSerializedWorker.cs
- ProfileSection.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SystemColorTracker.cs
- SchemaImporterExtensionsSection.cs
- ModelService.cs
- SizeConverter.cs
- TypeUtil.cs
- WebPartDisplayModeEventArgs.cs
- HandlerBase.cs
- FontUnit.cs
- SystemTcpConnection.cs
- BuildTopDownAttribute.cs
- MergeFailedEvent.cs
- UnsafeNativeMethods.cs
- SystemKeyConverter.cs
- HttpResponse.cs
- TextRangeAdaptor.cs
- WebServiceHostFactory.cs
- graph.cs
- CheckBoxPopupAdapter.cs
- AttributeUsageAttribute.cs
- _Semaphore.cs
- ItemsPresenter.cs
- SpecularMaterial.cs
- HttpCacheParams.cs
- XPathNavigator.cs
- Int32Animation.cs
- RangeValuePattern.cs
- WebConfigurationFileMap.cs
- ElementNotEnabledException.cs
- XmlILStorageConverter.cs
- Table.cs
- formatter.cs
- WindowsHyperlink.cs
- LineSegment.cs
- SHA256.cs
- XmlUtilWriter.cs
- FilterableData.cs
- TextModifierScope.cs
- DataControlFieldCollection.cs
- PageThemeParser.cs
- BinaryOperationBinder.cs
- SpeechSynthesizer.cs
- CodeFieldReferenceExpression.cs
- SmiEventSink_Default.cs
- IsolatedStorageFileStream.cs
- PathNode.cs
- SrgsGrammarCompiler.cs
- ObfuscationAttribute.cs
- GZipDecoder.cs
- SqlRetyper.cs
- Substitution.cs
- WindowsSpinner.cs
- TreeNodeStyleCollection.cs
- ServerValidateEventArgs.cs
- ObjectItemLoadingSessionData.cs
- Lock.cs
- DiagnosticTraceRecords.cs
- TextEditor.cs