Click or drag to resize
EF Visual Editor

StringExtensionsTruncate Method

[Missing <summary> documentation for "M:Sawczyn.EFDesigner.EFModel.StringExtensions.Truncate(System.String,System.Int32,System.String,System.Boolean)"]

Namespace:  Sawczyn.EFDesigner.EFModel
Assembly:  Sawczyn.EFDesigner.EFModel.Dsl (in Sawczyn.EFDesigner.EFModel.Dsl.dll) Version: 2.0.5.3 (2.0.5.3)
Syntax
public static string Truncate(
	this string text,
	int length,
	string ellipsis = "...",
	bool keepFullWordAtEnd = true
)
Request Example View Source

Parameters

text
Type: SystemString

[Missing <param name="text"/> documentation for "M:Sawczyn.EFDesigner.EFModel.StringExtensions.Truncate(System.String,System.Int32,System.String,System.Boolean)"]

length
Type: SystemInt32

[Missing <param name="length"/> documentation for "M:Sawczyn.EFDesigner.EFModel.StringExtensions.Truncate(System.String,System.Int32,System.String,System.Boolean)"]

ellipsis (Optional)
Type: SystemString

[Missing <param name="ellipsis"/> documentation for "M:Sawczyn.EFDesigner.EFModel.StringExtensions.Truncate(System.String,System.Int32,System.String,System.Boolean)"]

keepFullWordAtEnd (Optional)
Type: SystemBoolean

[Missing <param name="keepFullWordAtEnd"/> documentation for "M:Sawczyn.EFDesigner.EFModel.StringExtensions.Truncate(System.String,System.Int32,System.String,System.Boolean)"]

Return Value

Type: String

[Missing <returns> documentation for "M:Sawczyn.EFDesigner.EFModel.StringExtensions.Truncate(System.String,System.Int32,System.String,System.Boolean)"]

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