AppString Methods |
The AppString type exposes the following members.
Name | Description | |
---|---|---|
![]() | AppendToLanguageStrings |
Appends a text to all language strings.
The applied text is an AppString itself so it can be defined in multiple laignages.
If insertSpace is defined, a space is added before the text.
The method is used for post-fixing the name on a cloned object with " (copy)"
|
![]() | AssignFrom |
Assigns language strings from source.
Existing language strings, for languages not present in source, are preserved.
|
![]() | Clone | |
![]() | CompareStringTo |
Compares two AppString objects using their current language using ToString()
|
![]() | CompareTo(Object) |
Compares two AppString objects.
|
![]() | CompareTo(AppString) |
Compares two AppString objects.
|
![]() | Equals |
Compares two AppString objects.
(Overrides ObjectEquals(Object).) |
![]() ![]() | GetDifferingLanguageIds |
Compares the language strings in two AppString objects and
returns the ids of the languages where they differ.
|
![]() | GetHashCode | (Overrides ObjectGetHashCode.) |
![]() | GetLangStr |
Returns a LangString object for the given langId.
If no object exists the null is returned.
|
![]() | GetLangStrDefault |
Returns a LangString object for the specified language id.
|
![]() | GetSimpleString |
Returns a SimpleAppString object with the current users language string
|
![]() | ResetAll |
Resets ID's etc.
The method is used when creating an copy of an existing AppString object for storage in the database.
|
![]() | SetLanguageString(String) |
Sets the string value of the language string for the active user's language.
If the langstring object doesn't already exist it is created UNLESS it is empty ("").
If the string value for the default language is empty ("") it is
also set to the same string value.
|
![]() | SetLanguageString(String, Int32, Boolean) |
Sets the string value of the language string for the given language.
If the langstring object doesn't already exist it is created UNLESS it is empty ("").
If the string value for the default language is empty ("") it is
also set to the same string value.
|
![]() | SetLanguageStrings |
Method transfers the text to all LangStrings in the source, but only for active languages
The text will be formatted with the args arguments.
|
![]() | ToString |
Returns the language specific string based on the active users language
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |