Class ContextDefinition
Holds context data. Can be referenced by multiple Context elements.
Implements
Inherited Members
Namespace: Sdl.Core.Bcm.BcmModel.Skeleton
Assembly: Sdl.Core.Bcm.BcmModel.dll
Syntax
[DataContract]
public class ContextDefinition : SkeletonItem, IEquatable<MetadataContainer>, IEquatable<SkeletonItem>, ICloneable<ContextDefinition>, IEquatable<ContextDefinition>
Constructors
ContextDefinition()
Declaration
public ContextDefinition()
Properties
Description
Gets or sets the description.
Declaration
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The description. |
DisplayCode
Gets or sets the context display code.
Declaration
[DataMember(Name = "displayCode", EmitDefaultValue = false)]
public string DisplayCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The context display code. |
DisplayColor
Gets or sets the context display color.
Declaration
[DataMember(Name = "displayColor", EmitDefaultValue = false)]
public string DisplayColor { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The context display color. |
DisplayName
Gets or sets the context display name.
Declaration
[DataMember(Name = "displayName", EmitDefaultValue = false)]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The context display name. |
FormattingGroupId
Gets or sets the formatting group identifier.
Declaration
[DataMember(Name = "formattingGroupId", EmitDefaultValue = false)]
public int FormattingGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The formatting group identifier. |
IsSidContext
Gets a value indicating whether this instance is sID context.
Declaration
public bool IsSidContext { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
IsStructureContext
Gets or sets a value indicating whether this instance is a structure context.
Declaration
[DataMember(Name = "isStructureContext", EmitDefaultValue = false)]
public bool IsStructureContext { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
IsTmContext
Gets or sets a value indicating whether this instance is a TM context.
Declaration
[DataMember(Name = "isTmContext", EmitDefaultValue = false)]
public bool IsTmContext { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
IsTmStructureContext
Gets a value indicating whether this instance is a TM structure context.
Declaration
public bool IsTmStructureContext { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
TypeId
Gets or sets the context type identifier.
Declaration
[DataMember(Name = "typeId", EmitDefaultValue = false)]
public string TypeId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The context type identifier. |
Methods
Clone()
Clones this instance.
Declaration
public ContextDefinition Clone()
Returns
| Type | Description |
|---|---|
| ContextDefinition |
Equals(ContextDefinition)
Performs a deep-equals comparison.
System.Object.Equals(object)
Declaration
public bool Equals(ContextDefinition other)
Parameters
| Type | Name | Description |
|---|---|---|
| ContextDefinition | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Performs a deep-equals comparison.
System.Object.Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for this instance. |
Overrides
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents this instance. |