skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RowSelection

Manages a selection of entire rows, providing access to row-specific properties like height, hidden state, and outline level for formatting and manipulation.

Inheritance
System.Object
SelectionBase
RowColumnSelectionBase
RowSelection
Inherited Members
RowColumnSelectionBase.GetPropertyValue<T>(IPropertyDefinition<T>)
RowColumnSelectionBase.Group()
RowColumnSelectionBase.Ungroup()
RowColumnSelectionBase.SetOutlineLevel(Int32)
RowColumnSelectionBase.ClearOutlineLevel()
SelectionBase.BeginUpdate()
SelectionBase.EndUpdate()
SelectionBase.ExecuteForEachRangeInsideBeginEndUpdate(Action<CellRange>)
SelectionBase.ExecuteForEachRangeInsideBeginEndUpdate(IEnumerable<CellRange>, Action<CellRange>, Predicate<CellRange>)
SelectionBase.ExecuteForEachRange(Action<CellRange>)
SelectionBase.ExecuteForEachRange(IEnumerable<CellRange>, Action<CellRange>, Predicate<CellRange>)
SelectionBase.GetPropertyValue<T>(Func<CellRange, RangePropertyValue<T>>, IEnumerable<CellRange>, T)
SelectionBase.GetTopLeftCellIndex()
SelectionBase.Clear(ClearType)
SelectionBase.GetFormat()
SelectionBase.SetFormat(CellValueFormat)
SelectionBase.ClearFormat()
SelectionBase.GetStyleName()
SelectionBase.SetStyleName(String)
SelectionBase.ClearStyleName()
SelectionBase.GetFill()
SelectionBase.SetFill(IFill)
SelectionBase.ClearFill()
SelectionBase.GetFontFamily()
SelectionBase.SetFontFamily(ThemableFontFamily)
SelectionBase.ClearFontFamily()
SelectionBase.GetFontSize()
SelectionBase.SetFontSize(Double)
SelectionBase.ClearFontSize()
SelectionBase.GetIsBold()
SelectionBase.SetIsBold(Boolean)
SelectionBase.ClearIsBold()
SelectionBase.GetIsItalic()
SelectionBase.SetIsItalic(Boolean)
SelectionBase.ClearIsItalic()
SelectionBase.GetUnderline()
SelectionBase.SetUnderline(UnderlineType)
SelectionBase.ClearUnderline()
SelectionBase.GetForeColor()
SelectionBase.SetForeColor(ThemableColor)
SelectionBase.ClearForeColor()
SelectionBase.GetHorizontalAlignment()
SelectionBase.SetHorizontalAlignment(RadHorizontalAlignment)
SelectionBase.ClearHorizontalAlignment()
SelectionBase.GetVerticalAlignment()
SelectionBase.SetVerticalAlignment(RadVerticalAlignment)
SelectionBase.ClearVerticalAlignment()
SelectionBase.GetIndent()
SelectionBase.SetIndent(Int32)
SelectionBase.ClearIndent()
SelectionBase.IncreaseIndent()
SelectionBase.DecreaseIndent()
SelectionBase.GetIsWrapped()
SelectionBase.SetIsWrapped(Boolean)
SelectionBase.ClearIsWrapped()
SelectionBase.GetTextRotation()
SelectionBase.SetTextRotation(Int32)
SelectionBase.ClearTextRotation()
SelectionBase.GetBorders()
SelectionBase.ClearBorders()
SelectionBase.GetIsLocked()
SelectionBase.SetIsLocked(Boolean)
SelectionBase.ClearIsLocked()
SelectionBase.CellRanges
SelectionBase.Worksheet
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll

Syntax

public class RowSelection : RowColumnSelectionBase

Methods

AutoFitHeight()

Adjusts the height of selected rows to automatically fit their content.

Declaration
public void AutoFitHeight()

ClearHeight()

Removes custom height settings from the selected rows, reverting them to the default height.

Declaration
public void ClearHeight()

ClearHidden()

Removes the hidden state from the selected rows, making them visible.

Declaration
public void ClearHidden()

GetFromToIndexFromRange(CellRange, out Int32, out Int32)

Extracts the starting and ending row indices from the specified cell range.

Declaration
protected override void GetFromToIndexFromRange(CellRange cellRange, out int fromIndex, out int toIndex)
Parameters
CellRange cellRange

The cell range.

System.Int32 fromIndex

From index.

System.Int32 toIndex

To index.

Overrides
RowColumnSelectionBase.GetFromToIndexFromRange(CellRange, out Int32, out Int32)

GetHeight()

Gets the height value for the selected rows, or an indeterminate state if heights differ across the selection.

Declaration
public RangePropertyValue<RowHeight> GetHeight()
Returns
RangePropertyValue<RowHeight>

The height for the selection.

GetHidden()

Gets whether the selected rows are hidden, or an indeterminate state if visibility differs across the selection.

Declaration
public RangePropertyValue<bool> GetHidden()
Returns
RangePropertyValue<System.Boolean>

The value of the hidden property

GetOutlineLevel()

Gets the outline level of the selected rows, indicating their grouping depth for collapse and expand.

Declaration
public override RangePropertyValue<int> GetOutlineLevel()
Returns
RangePropertyValue<System.Int32>

The outline level.

Overrides
RowColumnSelectionBase.GetOutlineLevel()

Insert()

Inserts new rows at the positions of the selected rows, shifting existing rows downward.

Declaration
public bool Insert()
Returns
System.Boolean

The value indicating whether the insert was successful.

Remove()

Deletes the selected rows from the worksheet, shifting remaining rows upward.

Declaration
public void Remove()

SetBorders(CellBorders)

Applies border styling to all cells within the selected rows.

Declaration
public override void SetBorders(CellBorders value)
Parameters
CellBorders value

The value.

Overrides
SelectionBase.SetBorders(CellBorders)

SetHeight(RowHeight)

Applies the specified height to all rows in the selection.

Declaration
public void SetHeight(RowHeight value)
Parameters
RowHeight value

The value.

SetHidden(Boolean)

Shows or hides the selected rows in the worksheet.

Declaration
public void SetHidden(bool value)
Parameters
System.Boolean value

The value indicating whether the selected rows are hidden.

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.