---
title: "StraightenSegments Class"
url: "https://reference.aspose.com/gis/python-net/aspose.gis.labeling.line/straightensegments/"
---


**Summary:** 

**Module:** [aspose.gis.labeling.line](/psd/python-net/aspose.gis.labeling.line/)

**Full Name:** aspose.gis.labeling.line.StraightenSegments

**Aspose.PSD Version:** 25.9.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [StraightenSegments(measured_line)](#StraightenSegments_measured_line_1) | Initializes a new instance of the StraightenSegments class |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| longest_length | double | r |    |
| segments | System.Collections.Generic.IReadOnlyList<MeasuredLineSegment> | r |    |


### Constructor: StraightenSegments(measured_line) {#StraightenSegments_measured_line_1}


```
 StraightenSegments(measured_line) 
```

Initializes a new instance of the StraightenSegments class

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| measured_line | [MeasuredLine](/psd/python-net/aspose.gis.labeling.line/measuredline) |  |

