Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
186 lines (171 sloc) 12.6 KB
<Type Name="Bold" FullName="System.Windows.Documents.Bold">
<TypeSignature Language="C#" Value="public class Bold : System.Windows.Documents.Span" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi Bold extends System.Windows.Documents.Span" />
<TypeSignature Language="DocId" Value="T:System.Windows.Documents.Bold" />
<TypeSignature Language="VB.NET" Value="Public Class Bold&#xA;Inherits Span" />
<TypeSignature Language="C++ CLI" Value="public ref class Bold : System::Windows::Documents::Span" />
<TypeSignature Language="F#" Value="type Bold = class&#xA; inherit Span" />
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Windows.Documents.Span</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>An inline-level flow content element which causes content to render with a bold font weight.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.Windows.Documents.Bold> enforces a strong content model for child content. See [TextElement Content Model Overview](~/docs/framework/wpf/advanced/textelement-content-model-overview.md) for more information about the <xref:System.Windows.Documents.Bold> content model.
The object is the equivalent of a <xref:System.Windows.Documents.Span> with <xref:System.Windows.FontWeight> set to <xref:System.Windows.FontWeights.Bold%2A>.
]]></format>
</remarks>
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Documents.Bold" /> class.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Bold ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Documents.Bold.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; Bold();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new, empty instance of the <see cref="T:System.Windows.Documents.Bold" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Bold (System.Windows.Documents.Inline childInline);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Windows.Documents.Inline childInline) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Documents.Bold.#ctor(System.Windows.Documents.Inline)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (childInline As Inline)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; Bold(System::Windows::Documents::Inline ^ childInline);" />
<MemberSignature Language="F#" Value="new System.Windows.Documents.Bold : System.Windows.Documents.Inline -&gt; System.Windows.Documents.Bold" Usage="new System.Windows.Documents.Bold childInline" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="childInline" Type="System.Windows.Documents.Inline" />
</Parameters>
<Docs>
<param name="childInline">An <see cref="T:System.Windows.Documents.Inline" /> object specifying the initial contents of the new <see cref="T:System.Windows.Documents.Bold" />.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Documents.Bold" /> class, taking a specified <see cref="T:System.Windows.Documents.Inline" /> object as the initial contents of the new <see cref="T:System.Windows.Documents.Bold" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates usage of this constructor.
[!code-csharp[SpanSnippets#_Bold_Const1](~/samples/snippets/csharp/VS_Snippets_Wpf/SpanSnippets/CSharp/Window1.xaml.cs#_bold_const1)]
[!code-vb[SpanSnippets#_Bold_Const1](~/samples/snippets/visualbasic/VS_Snippets_Wpf/SpanSnippets/visualbasic/window1.xaml.vb#_bold_const1)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Bold (System.Windows.Documents.Inline childInline, System.Windows.Documents.TextPointer insertionPosition);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Windows.Documents.Inline childInline, class System.Windows.Documents.TextPointer insertionPosition) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Documents.Bold.#ctor(System.Windows.Documents.Inline,System.Windows.Documents.TextPointer)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (childInline As Inline, insertionPosition As TextPointer)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; Bold(System::Windows::Documents::Inline ^ childInline, System::Windows::Documents::TextPointer ^ insertionPosition);" />
<MemberSignature Language="F#" Value="new System.Windows.Documents.Bold : System.Windows.Documents.Inline * System.Windows.Documents.TextPointer -&gt; System.Windows.Documents.Bold" Usage="new System.Windows.Documents.Bold (childInline, insertionPosition)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="childInline" Type="System.Windows.Documents.Inline" />
<Parameter Name="insertionPosition" Type="System.Windows.Documents.TextPointer" />
</Parameters>
<Docs>
<param name="childInline">An <see cref="T:System.Windows.Documents.Inline" /> object specifying the initial contents of the new <see cref="T:System.Windows.Documents.Bold" />. This parameter may be <see langword="null" />, in which case no <see cref="T:System.Windows.Documents.Inline" /> is inserted.</param>
<param name="insertionPosition">A <see cref="T:System.Windows.Documents.TextPointer" /> specifying an insertion position at which to insert the <see cref="T:System.Windows.Documents.Bold" /> element after it is created, or <see langword="null" /> for no automatic insertion.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Documents.Bold" /> class, taking a specified <see cref="T:System.Windows.Documents.Inline" /> object as the initial contents of the new <see cref="T:System.Windows.Documents.Bold" />, and a <see cref="T:System.Windows.Documents.TextPointer" /> specifying an insertion position for the new <see cref="T:System.Windows.Documents.Inline" /> element.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates usage of this constructor.
[!code-csharp[SpanSnippets#_Bold_Const2](~/samples/snippets/csharp/VS_Snippets_Wpf/SpanSnippets/CSharp/Window1.xaml.cs#_bold_const2)]
[!code-vb[SpanSnippets#_Bold_Const2](~/samples/snippets/visualbasic/VS_Snippets_Wpf/SpanSnippets/visualbasic/window1.xaml.vb#_bold_const2)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Bold (System.Windows.Documents.TextPointer start, System.Windows.Documents.TextPointer end);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Windows.Documents.TextPointer start, class System.Windows.Documents.TextPointer end) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Documents.Bold.#ctor(System.Windows.Documents.TextPointer,System.Windows.Documents.TextPointer)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (start As TextPointer, end As TextPointer)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; Bold(System::Windows::Documents::TextPointer ^ start, System::Windows::Documents::TextPointer ^ end);" />
<MemberSignature Language="F#" Value="new System.Windows.Documents.Bold : System.Windows.Documents.TextPointer * System.Windows.Documents.TextPointer -&gt; System.Windows.Documents.Bold" Usage="new System.Windows.Documents.Bold (start, end)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="start" Type="System.Windows.Documents.TextPointer" />
<Parameter Name="end" Type="System.Windows.Documents.TextPointer" />
</Parameters>
<Docs>
<param name="start">A <see cref="T:System.Windows.Documents.TextPointer" /> indicating the beginning of a selection of content to be contained by the new <see cref="T:System.Windows.Documents.Bold" />.</param>
<param name="end">A <see cref="T:System.Windows.Documents.TextPointer" /> indicating the end of a selection of content to be contained by the new <see cref="T:System.Windows.Documents.Bold" />.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Documents.Bold" /> class, taking two <see cref="T:System.Windows.Documents.TextPointer" /> objects that indicate the beginning and end of a selection of content to be contained by the new <see cref="T:System.Windows.Documents.Bold" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This constructor is intended to initialize a new <xref:System.Windows.Documents.Bold> element such that it encloses a selection of pre-existing content.
## Examples
The following example demonstrates usage of this constructor.
[!code-csharp[SpanSnippets#_Bold_Const3](~/samples/snippets/csharp/VS_Snippets_Wpf/SpanSnippets/CSharp/Window1.xaml.cs#_bold_const3)]
[!code-vb[SpanSnippets#_Bold_Const3](~/samples/snippets/visualbasic/VS_Snippets_Wpf/SpanSnippets/visualbasic/window1.xaml.vb#_bold_const3)]
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">Raised when <paramref name="start" /> or <paramref name="end" /> is **null**.</exception>
<exception cref="T:System.ArgumentException">Raised when <paramref name="start" /> and <paramref name="end" /> do not resolve to a range of content suitable for enclosure by a <see cref="T:System.Windows.Documents.Bold" /> element, for example, if <paramref name="start" /> and <paramref name="end" /> indicate positions in different paragraphs.</exception>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.