DHI.Mike1D
DHI.Mike1D
Namespaces
DHI.Mike1D.Generic
Util Class
Util Methods
CheckDirectoryForFile Method
CreateDirectoryForFileIfNotExists Method
CreateDirectoryIfNotExists Method
CreateStackTraceString Method
GetParameters Method
GetUnitConversionFactor Method
IsDefined Method
IsSimple Method
LimitTimeStepToCheckPoint Method
MakeValidFileName Method
Max Method
Min Method
NextTimeAfter Method
ReadAssemblyBuildDateTime Method
ReadSelectionFile Method
RoundDown Method
RoundUp Method
SetupDebugEnvironmentNoGac Method
Swap(T) Method
TrimString Method
Truncate Method
UnitConversionFactors Method
UserUnitToString Method
ValueInUserUnit Method
ValueInUserUnitToString Method
ValueInUserUnitToStringWithUnit Method
ValueToString Method
Util
Truncate Method
Truncate string to the maximum length specified.
Namespace:
DHI.Mike1D.Generic
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
Copy
public
static
string
Truncate
(
this
string
value
,
int
maxLength
)
Parameters
value
Type:
System
String
maxLength
Type:
System
Int32
Return Value
Type:
String
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
Util Class
DHI.Mike1D.Generic Namespace