LevelLocation Class |
Namespace: Sdl.FileTypeSupport.Framework.BilingualApi
The LevelLocation type exposes the following members.
Name | Description | |
---|---|---|
LevelLocation |
Creates an uninitialized object.
| |
LevelLocation(LevelLocation) |
Creates from the values used in another object.
| |
LevelLocation(IAbstractMarkupDataContainer, Int32) |
Creates from specific parent and index values.
|
Name | Description | |
---|---|---|
Index |
The index in the parent collection that defines the location.
Index 0 refers to the location before the first item in the collection.
The index Parent.Count indicates a location after the last item
in the collection.
| |
IsAtEndOfParent |
True if the location is valid and refers to the position after the last item in the parent
| |
IsAtStartOfParent |
True if the location is valid and refers to the first item in the parent
| |
IsValid |
The location is valid if the parent is set, and
the index is a value within the range: 0 <= index <= Parent.Content.Count
| |
ItemAtLocation |
Returns the item with the same index in the parent collection
as the Index of this location, or null if there
is no item with that index (e.g. if the index indicates a position
after the last item in the collection).
| |
Parent |
The container that this location refers to a position inside.
|
Name | Description | |
---|---|---|
Clone |
Create a shallow clone.
| |
Equals |
Compares all properties.
(Overrides ObjectEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Calculated from index and parent properties
(Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Overridden to provide more intuitive information for use in the debugger
(Overrides ObjectToString.) |
The Parent property specifies the parent container, and the Index property represents the item index in the container. An index of 0 indicates a position between the first item in the parent, and an index of Parent.Count indicates a position after the last item.
If you need to refer to an item in a nested container, use a Location instead.
Since the position includes an index into the parent, if the content of the parent changes (e.g. new items are inserted, or existing ones removed or replaced), the position may no longer point to the same item.
Use a location marker instead if you need to refer to a specific location that may change as part of operations on the data.