
# ISch_HarnessConnector interface

The `ISch_HarnessConnector` interface is used to represent a harness connector design obejct which is a member of the harness system.

```csharp
public interface ISch_HarnessConnector : ISch_RectangularGroup
```

**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) → [ISch_ParametrizedGroup](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_ParametrizedGroup.md) → [ISch_RectangularGroup](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_RectangularGroup.md)

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [LineWidth](#linewidth) | [TSize](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/TSize.md) | get; set | The `LineWidth` property defines the line width of the harness connector which is based on one of the [`TSize`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/TSize.md) values. |
| [MasterEntryLocation](#masterentrylocation) | [Point](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/Point.md) | get | The `MasterEntryLocation` property defines the location of the master entry of the harness connector. |
| [SchHarnessConnectorType](#schharnessconnectortype) | [ISch_HarnessConnectorType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessConnectorType.md) | get | The HarnessConnectorType property defines the harness connector type of the harness connector and returns the [`ISch_HarnessConnectorType`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessConnectorType.md) interface. |

### LineWidth

The `LineWidth` property defines the line width of the harness connector which is based on one of the [`TSize`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/TSize.md) values. .

```csharp
TSize GetState_LineWidth();
void SetState_LineWidth(TSize argValue);
```

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

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

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

### MasterEntryLocation

The `MasterEntryLocation` property defines the location of the master entry of the harness connector. The master entry represents the tip of the harness connector and the position of the tip is determined from the top side of the connector..

```csharp
Point GetState_MasterEntryLocation();
```

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

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

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

### SchHarnessConnectorType

The HarnessConnectorType property defines the harness connector type of the harness connector and returns the [`ISch_HarnessConnectorType`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessConnectorType.md) interface. The default connector type is 'Harness'.

```csharp
ISch_HarnessConnectorType GetState_SchHarnessConnectorType();
```

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

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

**Example:** Read the type text of a harness connector.

```csharp
using SCH;

// harnessConn is a harness connector design object,
// here the first one found on the current schematic sheet.
ISch_Document schDoc = SCH.GlobalVars.SchServer?.GetCurrentSchDocument();
if (schDoc == null)
    return;
ISch_Iterator iterator = schDoc.SchIterator_Create();
iterator.AddFilter_ObjectSet(new SCH.TObjectSet { TObjectId.eHarnessConnector });
var harnessConn = iterator.FirstSchObject() as ISch_HarnessConnector;
schDoc.SchIterator_Destroy(ref iterator);
if (harnessConn == null)
    return;

ISch_HarnessConnectorType connType = harnessConn.GetState_SchHarnessConnectorType();
// The Text string for this harness connector.
string s = connType.GetState_Text();
```

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

## Inherited members

- From [ISch_RectangularGroup](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_RectangularGroup.md): [XSize](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_RectangularGroup.md#xsize), [YSize](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_RectangularGroup.md#ysize)
- From [ISch_ParametrizedGroup](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_ParametrizedGroup.md): [Import_FromUser_Parameters](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_ParametrizedGroup.md#import_fromuser_parameters), [ResetAllSchParametersPosition](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_ParametrizedGroup.md#resetallschparametersposition)
- 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)

## Returned by

[ISch_HarnessEntry.SchOwnerHarnessConnector](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessEntry.md#schownerharnessconnector)
