## Row class

يمثل صفًا واحدًا في ورقة عمل.

```csharp
public class Row : IEnumerable
```

## الخصائص

| اسم | وصف |
| --- | --- |
| [FirstCell](../../aspose.cells/row/firstcell) { get; } | الحصول على كائن الخلية الأول في الصف . |
| [FirstDataCell](../../aspose.cells/row/firstdatacell) { get; } | الحصول على أول خلية غير فارغة في الصف. |
| [GroupLevel](../../aspose.cells/row/grouplevel) { get; } | يحصل على مستوى المجموعة للصف . |
| [Height](../../aspose.cells/row/height) { get; set; } | الحصول على وتعيين ارتفاع الصف بوحدة النقاط. |
| [Index](../../aspose.cells/row/index) { get; } | يحصل على فهرس هذا الصف . |
| [IsBlank](../../aspose.cells/row/isblank) { get; } | يشير إلى ما إذا كان الصف يحتوي على أية بيانات |
| [IsCollapsed](../../aspose.cells/row/iscollapsed) { get; set; } | ما إذا كان الصف مطويًا |
| [IsHeightMatched](../../aspose.cells/row/isheightmatched) { get; set; } | يشير إلى تطابق ارتفاع الصف وارتفاع الخط الافتراضي. |
| [IsHidden](../../aspose.cells/row/ishidden) { get; set; } | يشير إلى ما إذا كان الصف مخفيًا . |
| [Item](../../aspose.cells/row/item) { get; } | يحصل على الخلية . |
| [LastCell](../../aspose.cells/row/lastcell) { get; } | الحصول على آخر كائن خلية في الصف . |
| [LastDataCell](../../aspose.cells/row/lastdatacell) { get; } | الحصول على آخر خلية غير فارغة في الصف. |
| [Style](../../aspose.cells/row/style) { get; } | يمثل نمط هذا الصف . |

## طُرق

| اسم | وصف |
| --- | --- |
| [ApplyStyle](../../aspose.cells/row/applystyle)(Style, StyleFlag) | يطبق التنسيقات على صف كامل . |
| [CopySettings](../../aspose.cells/row/copysettings)(Row, bool) | نسخ إعدادات الصف ، مثل النمط والارتفاع وإمكانية الرؤية ... إلخ . |
| [Equals](../../aspose.cells/row/equals#equals_1)(object) | للتحقق مما إذا كان هذا الكائن يشير إلى نفس الصف مع آخر. |
| [Equals](../../aspose.cells/row/equals#equals)(Row) | للتحقق مما إذا كان هذا الكائن يشير إلى نفس الصف مع كائن صف آخر. |
| [GetCellOrNull](../../aspose.cells/row/getcellornull)(int) | الحصول على الخلية أو القيمة الخالية في الفهرس المحدد. |
| [GetEnumerator](../../aspose.cells/row/getenumerator)() | الحصول على تعداد الخلايا |

### أمثلة

```csharp

[C#]

// إنشاء كائن مصنف
Workbook workbook = new Workbook();

// الحصول على مرجع ورقة العمل الأولى
Worksheet worksheet = workbook.Worksheets[0];
Style style = workbook.CreateStyle();

// ضبط لون الخلفية على اللون الأزرق
style.BackgroundColor = Color.Blue;

// ضبط لون المقدمة على اللون الأحمر
style.ForegroundColor= Color.Red;

// إعداد نمط الخلفية
style.Pattern = BackgroundType.DiagonalStripe;

// علم نمط جديد
StyleFlag styleFlag = new StyleFlag();

// تعيين كافة الأنماط
styleFlag.All = true;

 // احصل على الصف الأول
Row row = worksheet.Cells.Rows[0];
 // تطبيق النمط على الصف الأول
row.ApplyStyle(style, styleFlag);

// حفظ ملف Excel
workbook.Save("book1.xls");

[VB.NET]

'إنشاء كائن مصنف
Dim workbook As Workbook = New Workbook()

'الحصول على مرجع ورقة العمل الأولى
Dim worksheet As Worksheet = workbook.Worksheets(0)

Dim style As Style = workbook.CreateStyle()

'ضبط لون الخلفية على اللون الأزرق
style.BackgroundColor = Color.Blue

'ضبط لون المقدمة على الأحمر
style.ForegroundColor = Color.Red

'ضبط نمط الخلفية
style.Pattern = BackgroundType.DiagonalStripe

'علم نمط جديد
Dim styleFlag As New StyleFlag()

'تعيين كافة الأنماط
styleFlag.All = True

 'احصل على الصف الأول
Dim row as Row = worksheet.Cells.Rows(0)
 'تطبيق النمط على الصف الأول
row.ApplyStyle(style, styleFlag)

'حفظ ملف Excel
workbook.Save("book1.xls")
```

### أنظر أيضا

* مساحة الاسم [Aspose.Cells](../../aspose.cells)
* المجسم [Aspose.Cells](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
