HtmlLoadOptions Class

HtmlLoadOptions class

Represents options when importing a html file.


type HtmlLoadOptions struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription
NewHtmlLoadOptionsCreates an options of loading the file.
NewHtmlLoadOptions_LoadFormatCreates an options of loading the file.
NewHtmlLoadOptions_AbstractTextLoadOptionsConstructs from a parent object.

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetLoadFormulasIndicates whether importing formulas if the original html file contains formulas
SetLoadFormulasIndicates whether importing formulas if the original html file contains formulas
GetSupportDivTagIndicates whether support the layout of <div> tag when the html file contains it.The default value is false.
SetSupportDivTagIndicates whether support the layout of <div> tag when the html file contains it.The default value is false.
GetDeleteRedundantSpacesIndicates whether delete redundant spaces when the text wraps lines using <br> tag.The default value is false.
SetDeleteRedundantSpacesIndicates whether delete redundant spaces when the text wraps lines using <br> tag.The default value is false.
GetAutoFitColsAndRowsIndicates whether auto-fit columns and rows. The default value is false.
SetAutoFitColsAndRowsIndicates whether auto-fit columns and rows. The default value is false.
GetHasFormulaIndicates whether the text is formula if it starts with “=”.
SetHasFormulaIndicates whether the text is formula if it starts with “=”.
GetProgIdGets the program id of creating the file.Only for MHT files.
GetTableLoadOptionsGet the HtmlTableLoadOptionCollection instance
GetEncodingGets and sets the default encoding. Only applies for csv file.
SetEncodingGets and sets the default encoding. Only applies for csv file.
GetLoadStyleStrategyIndicates the strategy to apply style for parsed values when converting string value to number or datetime.
SetLoadStyleStrategyIndicates the strategy to apply style for parsed values when converting string value to number or datetime.
GetConvertNumericDataGets or sets a value that indicates whether the string in text file is converted to numeric data.
SetConvertNumericDataGets or sets a value that indicates whether the string in text file is converted to numeric data.
GetConvertDateTimeDataGets or sets a value that indicates whether the string in text file is converted to date data.
SetConvertDateTimeDataGets or sets a value that indicates whether the string in text file is converted to date data.
GetKeepPrecisionIndicates whether not parsing a string value if the length is 15.
SetKeepPrecisionIndicates whether not parsing a string value if the length is 15.