[]
        
(Showing Draft Content)

C1.Win.Document.Util.C1RichText

C1RichText Class

Inheritance
C1RichText
Implements
Namespace: C1.Win.Document.Util
Assembly: C1.Win.Document.10.dll
Syntax
public class C1RichText : Object, IDisposable
Public Class C1RichText
    Inherits Object
    Implements IDisposable

Constructors

Name Description
C1RichText()

Fields

Name Description
InfiniteHeightTw
InfiniteWidthTw

Properties

Name Description
DetectUrls

Gets or sets a value indicating whether or not the C1RichText will automatically format a Uniform Resource Locator (URL).

Handle

Handle of native API window which is used.

TextLength

Gets the length of text, length of real text will be calculated, the length of RTF tags will not taken into account.

Transparent

Gets or sets the value indicating whether the RTF is transparent when painting.

Methods

Name Description
CheckRtf(ref string)
CopyFrom(C1RichText)

Copies properties of another C1RichText object.

Dispose()
Dispose(bool)
DrawOrMeasure(Graphics, Graphics, Rect, int, int, bool)

Draws or measures the RTF text.

Finalize()
GetContent(uint, bool)
GetRtf()

Gets the object's content as RTF text.

GetRtfMetafile(Graphics, string, int, int, Rect, bool)

Draws specified RTF text into metafile and returns this metafile.

GetRtfMetafileBytes(Graphics, string, int, int, Rect, bool)

Draws specified RTF text into metafile and returns metafile's data, bounds should be specified in twips.

GetSelectedRtf()

Gets the selected RTF text, text can be selected with using SetSelection method.

GetText()

Gets the object's content as simple text.

Load(Stream, RichTextBoxStreamType)

Loads the object's content from stream.

Load(string, RichTextBoxStreamType)

Loads the object's content from specified file.

PerformDrawOrMeasure(Graphics, Graphics, Rectangle, int, int, bool, ref Rectangle, ref int, ref bool)
PerformDrawOrMeasure(IntPtr, IntPtr, Rectangle, int, int, bool, ref Rectangle, ref int, ref bool)
SetFont(Font)

Sets default font, it used when assigned RTF do define a font.

SetForeColor(Color)
SetParagraphAlignment(ParagraphAlignment)
SetRtf(string)

Sets RTF text to the object.

SetSelection(int, int)

Sets the selection.

SetText(string)

Sets the specified text to the object, this methods sets text using SF_UNICODE flag.

ValidRtf(string)