MapperDatasheetEncodeText Method (String, Boolean, Boolean, String, Boolean) |
Encode the provided text for use in the DataGrid. The encoding may vary by target
browser. Example of this include handling truncated text in Safari, and handling hidden
columns in browsers other than IE and Firefox.
Namespace:
NetQuarry.Data.WebMappers
Assembly:
EAP.WebMappers (in EAP.WebMappers.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax protected string EncodeText(
string s,
bool isVisibleCol,
bool allowWrap,
string style,
bool htmlContent
)
Protected Function EncodeText (
s As String,
isVisibleCol As Boolean,
allowWrap As Boolean,
style As String,
htmlContent As Boolean
) As String
Parameters
- s
- Type: SystemString
The string to encode. - isVisibleCol
- Type: SystemBoolean
Specifies whether or not the column is visible to the user. - allowWrap
- Type: SystemBoolean
Specifies whether or not the column should be allowed to wrap. - style
- Type: SystemString
The CSS style to use when building the fragment. - htmlContent
- Type: SystemBoolean
HTML to use instead of s (an unencoded string that must be encoded).
Return Value
Type:
StringThe encoded text.
See Also