Class CodePage
- Namespace
- Tripous
- Assembly
- Tripous.dll
Represents a text encoding (code page) supported by the system.
public class CodePage
- Inheritance
-
CodePage
- Inherited Members
- Extension Methods
Constructors
CodePage()
Constructor.
public CodePage()
CodePage(Encoding)
Constructs an instance from a text encoding.
public CodePage(Encoding Encoding)
Parameters
EncodingEncoding
Properties
DisplayName
Gets or sets the user-friendly encoding name.
public string DisplayName { get; set; }
Property Value
Encoding
Gets the corresponding text encoding.
public Encoding Encoding { get; }
Property Value
Name
Gets or sets the encoding web name.
public string Name { get; set; }
Property Value
Methods
GetSupportedCodePages()
Returns a predefined list of commonly used code pages.
public static List<CodePage> GetSupportedCodePages()
Returns
GetSupportedCodePagesAll()
Returns all code pages supported by the system.
Assumes that: Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
has already been called.
public static List<CodePage> GetSupportedCodePagesAll()
Returns
ToString()
Returns the display name of this code page.
public override string ToString()