[]
IDWriteTextFormat
[Guid("9c906818-31d7-4fd3-a151-7c5e225db55a")]
public class TextFormat : ComObject, IDisposable, IUnknown
| Name | Description |
|---|---|
| TextFormat(IntPtr) | Initializes a new instance of the TextFormat class. |
| Name | Description |
|---|---|
| FontFamilyName | Gets a copy of the font family name. |
| LocaleName | Gets a copy of the locale name. |
| Name | Description |
|---|---|
| Create(Factory, string, FontCollection, FontWeight, FontStyle, FontStretch, float) | Creates a text format object used for text layout. |
| Create(Factory, string, FontCollection, FontWeight, FontStyle, FontStretch, float, string) | Creates a text format object used for text layout. |
| Create(Factory, string, FontWeight, FontStyle, FontStretch, float) | Creates a text format object used for text layout. |
| Create(Factory, string, FontWeight, FontStyle, float) | Creates a text format object used for text layout with normal stretch. |
| Create(Factory, string, float) | Creates a text format object used for text layout with normal weight, style and stretch. |
| GetFlowDirection() | DWRITE_FLOW_DIRECTION IDWriteTextFormat::GetFlowDirection() |
| GetFontCollection() | HRESULT IDWriteTextFormat::GetFontCollection([Out] IDWriteFontCollection** fontCollection) |
| GetFontFamilyName(IntPtr, int) | HRESULT IDWriteTextFormat::GetFontFamilyName([Out, Buffer] wchar_t* fontFamilyName,[In] unsigned int nameSize) |
| GetFontFamilyNameLength() | unsigned int IDWriteTextFormat::GetFontFamilyNameLength() |
| GetFontSize() | float IDWriteTextFormat::GetFontSize() |
| GetFontStretch() | DWRITE_FONT_STRETCH IDWriteTextFormat::GetFontStretch() |
| GetFontStyle() | DWRITE_FONT_STYLE IDWriteTextFormat::GetFontStyle() |
| GetFontWeight() | DWRITE_FONT_WEIGHT IDWriteTextFormat::GetFontWeight() |
| GetIncrementalTabStop() | float IDWriteTextFormat::GetIncrementalTabStop() |
| GetLineSpacing(out LineSpacingMethod, out float, out float) | HRESULT IDWriteTextFormat::GetLineSpacing([Out] DWRITE_LINE_SPACING_METHOD* lineSpacingMethod,[Out] float* lineSpacing,[Out] float* baseline) |
| GetLocaleName(IntPtr, int) | HRESULT IDWriteTextFormat::GetLocaleName([Out, Buffer] wchar_t* localeName,[In] unsigned int nameSize) |
| GetLocaleNameLength() | unsigned int IDWriteTextFormat::GetLocaleNameLength() |
| GetParagraphAlignment() | DWRITE_PARAGRAPH_ALIGNMENT IDWriteTextFormat::GetParagraphAlignment() |
| GetReadingDirection() | DWRITE_READING_DIRECTION IDWriteTextFormat::GetReadingDirection() |
| GetTextAlignment() | DWRITE_TEXT_ALIGNMENT IDWriteTextFormat::GetTextAlignment() |
| GetTrimming(out Trimming, out InlineObject) | HRESULT IDWriteTextFormat::GetTrimming([Out] DWRITE_TRIMMING* trimmingOptions,[Out] IDWriteInlineObject** trimmingSign) |
| GetWordWrapping() | DWRITE_WORD_WRAPPING IDWriteTextFormat::GetWordWrapping() |
| SetFlowDirection(FlowDirection) | HRESULT IDWriteTextFormat::SetFlowDirection([In] DWRITE_FLOW_DIRECTION flowDirection) |
| SetIncrementalTabStop(float) | HRESULT IDWriteTextFormat::SetIncrementalTabStop([In] float incrementalTabStop) |
| SetLineSpacing(LineSpacingMethod, float, float) | HRESULT IDWriteTextFormat::SetLineSpacing([In] DWRITE_LINE_SPACING_METHOD lineSpacingMethod,[In] float lineSpacing,[In] float baseline) |
| SetParagraphAlignment(ParagraphAlignment) | HRESULT IDWriteTextFormat::SetParagraphAlignment([In] DWRITE_PARAGRAPH_ALIGNMENT paragraphAlignment) |
| SetReadingDirection(ReadingDirection) | HRESULT IDWriteTextFormat::SetReadingDirection([In] DWRITE_READING_DIRECTION readingDirection) |
| SetTextAlignment(TextAlignment) | HRESULT IDWriteTextFormat::SetTextAlignment([In] DWRITE_TEXT_ALIGNMENT textAlignment) |
| SetTrimming(Trimming, InlineObject) | Sets trimming options for text overflowing the layout width. |
| SetWordWrapping(WordWrapping) | HRESULT IDWriteTextFormat::SetWordWrapping([In] DWRITE_WORD_WRAPPING wordWrapping) |
| Name | Description |
|---|---|
| explicit operator TextFormat(IntPtr) | Performs an explicit conversion from IntPtr to TextFormat. |