
# ISch_HarnessEntry interface

The `ISch_HarnessEntry` interface is used to represent a harness entry which is a member of the harness system. Harness Entries are the graphical definition of a Signal Harness member. They are placed within a Harness Connector and they are the connection point through which actual nets, buses and Signal Harnesses are combined to form a higher level Signal Harness. Harness Entries along with Harness Connectors, Signal Harnesses and Harness Definition Files make up a complete Signal Harness.

```csharp
public interface ISch_HarnessEntry : ISch_GraphicalObject
```

**Namespace:** SCH · **Assembly:** Altium.SDK.Interfaces

**Inherits:** [ISch_BasicContainer](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md) → [ISch_GraphicalObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md)

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [DistanceFromTop](#distancefromtop) | `int` | get; set | The `DistanceFromTop` property defines the location of the harness entry in respect to the associated harness connector. |
| [Name](#name) | `string` | get; set | The Name property defines the name of the harness entry. |
| [OverrideDisplayString](#overridedisplaystring) | `string` | get; set | The `OverrideDisplayString` property defines the OverRideDisplayString property. |
| [SchOwnerHarnessConnector](#schownerharnessconnector) | [ISch_HarnessConnector](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessConnector.md) | get | The OwnerHarnessConnector property retrieves the HarnessConnector interface this harness entry is associated with. |
| [Side](#side) | [TLeftRightSide](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/TLeftRightSide.md) | get; set | The Side property defines the orientation of the harness entry in respect to the associated harness connector. |
| [TextColor](#textcolor) | `int` | get; set | The `TextColor` property defines the color (a value of TColor type) for the Harness Entry's Name string. |

### DistanceFromTop

The `DistanceFromTop` property defines the location of the harness entry in respect to the associated harness connector.

```csharp
int GetState_DistanceFromTop();
void SetState_DistanceFromTop(int argValue);
```

**Type:** `int` · **Access:** read/write

### Name

The Name property defines the name of the harness entry. Normally the name property is a number but can be alphanumeric...

```csharp
string GetState_Name();
void SetState_Name(string argValue);
```

**Type:** `string` · **Access:** read/write

### OverrideDisplayString

The `OverrideDisplayString` property defines the OverRideDisplayString property.

```csharp
string GetState_OverrideDisplayString();
void SetState_OverrideDisplayString(string argValue);
```

**Type:** `string` · **Access:** read/write

### SchOwnerHarnessConnector

The OwnerHarnessConnector property retrieves the HarnessConnector interface this harness entry is associated with.

```csharp
ISch_HarnessConnector GetState_SchOwnerHarnessConnector();
```

**Type:** [ISch_HarnessConnector](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessConnector.md) · **Access:** read-only

The accessors are extension methods of `ISch_HarnessEntryHelper` (`using SCH;`).

### Side

The Side property defines the orientation of the harness entry in respect to the associated harness connector.

```csharp
TLeftRightSide GetState_Side();
void SetState_Side(TLeftRightSide argValue);
```

**Type:** [TLeftRightSide](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/TLeftRightSide.md) · **Access:** read/write

The accessors are extension methods of `ISch_HarnessEntryHelper` (`using SCH;`).

**See also:** [TLeftRightSide](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/TLeftRightSide.md)

### TextColor

The `TextColor` property defines the color (a value of TColor type) for the Harness Entry's Name string.

```csharp
int GetState_TextColor();
void SetState_TextColor(int argValue);
```

**Type:** `int` · **Access:** read/write

The accessors are extension methods of `ISch_HarnessEntryHelper` (`using SCH;`).

The TColor value specifies a 6 digit hexadecimal number of the $FFFFFF format. For example the color blue would be RGB:0,0,255 and Hex:FF0000 therefore the converted decimal value would be 16711680. The following formula may be used to calculate the required value, R+256*(G+(256*B)).

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [IsVertical](#isvertical) | `bool` | The `IsVertical` property defines the orientation of the harness entry in respect to the harness connector. |

### IsVertical

The `IsVertical` property defines the orientation of the harness entry in respect to the harness connector.

```csharp
bool IsVertical();
```

**Returns:** `bool`

## Inherited members

- From [ISch_GraphicalObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md): [AddErrorString](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#adderrorstring), [AreaColor](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#areacolor), [BoundingRectangle](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#boundingrectangle), [BoundingRectangle_Full](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#boundingrectangle_full), [Color](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#color), [CompilationMasked](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#compilationmasked), [Dimmed](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#dimmed), [Disabled](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#disabled), [DisplayError](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#displayerror), [EnableDraw](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#enabledraw), [ErrorColor](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#errorcolor), [ErrorKind](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#errorkind), [ErrorString](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#errorstring), [GetHash](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#gethash), [GraphicallyInvalidate](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#graphicallyinvalidate), [LiveHighlightValue](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#livehighlightvalue), [Location](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#location), [Mirror](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#mirror), [MoveByXY](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#movebyxy), [MoveToXY](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#movetoxy), [OwnerPartDisplayMode](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#ownerpartdisplaymode), [OwnerPartId](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#ownerpartid), [ResetErrorFields](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#reseterrorfields), [RotateBy90](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#rotateby90), [Selection](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#selection), [SetState_xSizeySize](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md#setstate_xsizeysize)
- From [ISch_BasicContainer](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md): [AddAndPositionSchObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#addandpositionschobject), [AddSchObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#addschobject), [CopyTo](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#copyto), [DeleteAll](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#deleteall), [DescriptionString](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#descriptionstring), [ExportToParameters](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#exporttoparameters), [FreeAllContainedObjects](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#freeallcontainedobjects), [Handle](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#handle), [IdentifierString](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#identifierstring), [Import_FromUser](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#import_fromuser), [ObjectId](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#objectid), [OwnerSchDocument](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#ownerschdocument), [RemoveSchObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#removeschobject), [Replicate](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#replicate), [SchBasicContainer](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#schbasiccontainer), [SchIterator_Create](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#schiterator_create), [SchIterator_Destroy](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#schiterator_destroy), [SchParameterByName](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#schparameterbyname), [Setstate_Default](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#setstate_default), [Text](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#text), [UniqueId](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#uniqueid), [WiringDiagramOriginUniqueId](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_BasicContainer.md#wiringdiagramoriginuniqueid)
