| TranslationUnit Methods |
The TranslationUnit type exposes the following members.
| Name | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CheckAndComputeTagAssociations |
Computes cross-segment tag associations. Primarily checks or changes the tag-related
alignment anchors. Renumbers association anchors.
| |||||||||||||||||||||||||||
| ComputePlaceables |
Computes the list of placeables and their alignment for this translation unit.
| |||||||||||||||||||||||||||
| DeleteTags |
Deletes all tags from the TU's segments but keeps text placeholders (and locked content tags).
| |||||||||||||||||||||||||||
| DeleteTags(SegmentDeleteTagsAction) |
Deletes all tags from the TU's segments and performs the specified SegmentDeleteTagsAction on text placeholders
and locked content.
| |||||||||||||||||||||||||||
| Duplicate |
Instantiates and returns a deep copy of the current instance.
| |||||||||||||||||||||||||||
| Equals | Determines whether the specified object is equal to the current object. (Inherited from 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 | Serves as the default hash function. (Inherited from Object.) | |||||||||||||||||||||||||||
| GetMaxTagAnchor |
Returns the highest tag anchor used in any segment, or 0 if no tags are present.
| |||||||||||||||||||||||||||
| GetSystemFieldType |
Returns the field value type for known system and pseudo fields.
| |||||||||||||||||||||||||||
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |||||||||||||||||||||||||||
| GetType(String) |
Retrieves the type of the specified field.
| |||||||||||||||||||||||||||
| GetValue(String) |
Retrieves the value of a specified field from this translation unit.
The system fields can be retrieved using the following names:
Pseudo-fields contain values that are not saved as separate field values, but can be computed from the existing information in a translatin unit. The available pseudo-fields are:
| |||||||||||||||||||||||||||
| GetValue(String, FieldValueType) |
Retrieves the field value with the specified type from this translation unit.
| |||||||||||||||||||||||||||
| IsValid |
Determines whether this instance is a valid translation unit.
| |||||||||||||||||||||||||||
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |||||||||||||||||||||||||||
| SetValue |
Sets the value of the specified field, which can be a system field or a user field.
Pseudo fields (such as src, trg, soruceplainlength, etc.) can not be set.
Exceptions will be thrown if the field types are incompatible. | |||||||||||||||||||||||||||
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |||||||||||||||||||||||||||
| Trim |
Trims off peripheral whitespace from the TU's segments.
| |||||||||||||||||||||||||||
| Validate |
Performs validation checks on this instance. All errors will be reported.
| |||||||||||||||||||||||||||
| Validate(SegmentValidationMode) |
Performs validation checks on this instance with the specified validation mode.
|