# Guideline

Artifact: [androidx.constraintlayout:constraintlayout-core](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/core/dsl/Guideline.java+class:androidx.constraintlayout.core.dsl.Guideline) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
abstract class Guideline : Helper
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.constraintlayout.core.dsl.Helper](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper) ||
|   | ↳ | [androidx.constraintlayout.core.dsl.Guideline](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Guideline) |

Known direct subclasses [VGuideline](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/VGuideline)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/VGuideline` |   |

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Guideline#getEnd()()` Get the end position |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Guideline#getPercent()()` Get the position in percent |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Guideline#getStart()()` Get the start position |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Guideline#setEnd(int)(end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Set the end position |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Guideline#setPercent(float)(percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Set the position in percent |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Guideline#setStart(int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Set the start position |

| ### Inherited Constants |
|---|
| From [androidx.constraintlayout.core.dsl.Helper](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper) |---|---| | `const (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Constraint.Side!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#sideMap()` | | `const (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper.Type!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#typeMap()` | |

| ### Inherited functions |
|---|
| From [androidx.constraintlayout.core.dsl.Helper](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper) |---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#append(java.util.Map<java.lang.String,java.lang.String>,java.lang.StringBuilder)(map: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!, ret: https://developer.android.com/reference/java/lang/StringBuilder.html!)` | | `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#convertConfigToMap()()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#getConfig()()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#getId()()` | | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper.HelperType!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#getType()()` | | `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#main(java.lang.String[])(args: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!)` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#toString()()` | |

| ### Inherited properties |
|---|
| From [androidx.constraintlayout.core.dsl.Helper](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper) |---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#config()` | | `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#configMap()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#name()` | | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper.HelperType!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/dsl/Helper#type()` | |

## Public functions

### getEnd

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun getEnd(): Int
```

Get the end position

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | end position |

### getPercent

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun getPercent(): Float
```

Get the position in percent

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | position in percent |

### getStart

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun getStart(): Int
```

Get the start position

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | start position |

### setEnd

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun setEnd(end: Int): Unit
```

Set the end position

| Parameters |
|---|---|
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the end position |

### setPercent

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun setPercent(percent: Float): Unit
```

Set the position in percent

| Parameters |
|---|---|
| `percent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | the position in percent |

### setStart

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun setStart(start: Int): Unit
```

Set the start position

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the start position |