Click or drag to resize
IContextInfo Interface
One piece of context information, with a type, purpose and description, as stored in Contexts.

Namespace: Sdl.FileTypeSupport.Framework.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2343.0)
Syntax
public interface IContextInfo : IMetaDataContainer, 
	ICloneable

The IContextInfo type exposes the following members.

Methods
  NameDescription
Public methodClearMetaData
Removes all key/value pairs from the meta data collection.
(Inherited from IMetaDataContainer.)
Public methodClone
Creates a new object that is a copy of the current instance.
(Inherited from ICloneable.)
Public methodGetMetaData
Returns the metadata value associated with the specified key, or null if no such key exists in the collection.
(Inherited from IMetaDataContainer.)
Public methodMetaDataContainsKey
True if a metadata value with the specified key exists
(Inherited from IMetaDataContainer.)
Public methodRemoveMetaData
Removes the metadata key/value pair with the specified key from the collection. No changes are made if the collection does not contain such a key.
(Inherited from IMetaDataContainer.)
Public methodSetMetaData

Sets the value of the specified metadata key.

If the key already exists in the collection, its value gets overwritten.

(Inherited from IMetaDataContainer.)
Top
Properties
  NameDescription
Public propertyContextType
A short string that identifies the type of context. Use pre-defined constants defined in Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApi.TMMatchContextTypes for TM match contexts, and constants defined in Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApi.StandardContextTypes for other context types, as far as possible.
Public propertyDefaultFormatting
Display formatting associated with this context, or null if none.
Public propertyDescription
Additional, more descriptive information on the context
Public propertyDisplayCode
A very short string (usually one or two letters) to identify the context
Public propertyDisplayColor
The display color associated with the context (background color, etc.)
Public propertyDisplayName
A short string to be used as the default display text for the context
Public propertyHasMetaData
True if there is any metadata in the container
(Inherited from IMetaDataContainer.)
Public propertyMetaData
Enumerator for the metadata key/value pairs.
(Inherited from IMetaDataContainer.)
Public propertyMetaDataCount
The number of meta data key/value pairs in the container
(Inherited from IMetaDataContainer.)
Public propertyPurpose
A value that indicates how this context is to be used: Match: for contexts that are used when looking up in a TMInformational: for contexts that provide translators with informationLocation: for contexts that are used to mark a document location
Top
Remarks

Custom metadata can be stored and accessed by using the methods in IMetaDataContainer.

See Also
Community
Edit
Be the first to Edit the community content of this topic.
Comments