Class EllipsisExtensions
Inheritance
System.Object
EllipsisExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Cms.Shell.UI.Notifications
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7Syntax
public static class EllipsisExtensions
Methods
CalculateMaxLength(String, IEnumerable<String>, Int32)
Declaration
public static int CalculateMaxLength(this string subject, IEnumerable<string> replacements, int maxLength)
Parameters
Type | Name | Description |
---|---|---|
System.String | subject | |
System.Collections.Generic.IEnumerable<System.String> | replacements | |
System.Int32 | maxLength |
Returns
Type | Description |
---|---|
System.Int32 |
Ellipsis(String, Int32)
Declaration
public static string Ellipsis(this string message, int maxLength)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Int32 | maxLength |
Returns
Type | Description |
---|---|
System.String |
Ellipsis(String, Int32, Char)
Declaration
public static string Ellipsis(this string message, int maxLength, char ellipsisCharacter)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Int32 | maxLength | |
System.Char | ellipsisCharacter |
Returns
Type | Description |
---|---|
System.String |