API Reference
@univerjs
@univerjs/sheets
interfaces
Iselectionstyle

@univerjs/sheets v0.1.17Docs


Interface: ISelectionStyle

https://support.microsoft.com/en-us/office/select-cell-contents-in-excel-23f64223-2b6b-453a-8688-248355f10fa9 (opens in a new tab)

Properties

PropertyTypeDescriptionDefined in
AutofillSize?number-packages/sheets/src/basics/selection.ts:109 (opens in a new tab)
AutofillStroke?string-packages/sheets/src/basics/selection.ts:111 (opens in a new tab)
AutofillStrokeWidth?number-packages/sheets/src/basics/selection.ts:110 (opens in a new tab)
columnHeaderFill?string-packages/sheets/src/basics/selection.ts:135 (opens in a new tab)
columnHeaderStroke?string-packages/sheets/src/basics/selection.ts:136 (opens in a new tab)
columnHeaderStrokeWidth?number-packages/sheets/src/basics/selection.ts:137 (opens in a new tab)
fillstringThe fill color inside the selection. It needs to have a level of transparency, otherwise content in the covered area of the selection will be obscured.packages/sheets/src/basics/selection.ts:83 (opens in a new tab)
hasAutoFillbooleanhttps://support.microsoft.com/en-us/office/copy-a-formula-by-dragging-the-fill-handle-in-excel-for-mac-dd928259-622b-473f-9a33-83aa1a63e218 (opens in a new tab) Whether to show the drop-down fill button at the bottom right corner of the selection.packages/sheets/src/basics/selection.ts:108 (opens in a new tab)
hasColumnHeader?booleanThe setting of column title highlight is similar to that of row title.packages/sheets/src/basics/selection.ts:134 (opens in a new tab)
hasRowHeader?booleanWhether to synchronize the display of row title highlights, the highlighting range is consistent with the horizontal range of the selection.packages/sheets/src/basics/selection.ts:116 (opens in a new tab)
id?stringAssign an ID to a selection area. The current scenario is to identify the formula string corresponding to the selection areapackages/sheets/src/basics/selection.ts:61 (opens in a new tab)
isAnimationDash?booleanEnable 'marching ants' animationpackages/sheets/src/basics/selection.ts:78 (opens in a new tab)
rowHeaderFill?stringThe color of the row title highlight. A level of transparency should be set to avoid covering the row title content.packages/sheets/src/basics/selection.ts:121 (opens in a new tab)
rowHeaderStroke?stringThe color of the bottom border of the row title.packages/sheets/src/basics/selection.ts:125 (opens in a new tab)
rowHeaderStrokeWidth?numberThe color of the bottom border of the row title.packages/sheets/src/basics/selection.ts:129 (opens in a new tab)
strokestringThe color of the selection border.packages/sheets/src/basics/selection.ts:69 (opens in a new tab)
strokeDash?numberThe dashed line of the selection border. Here, the dashed line is a numerical value, different from the canvas dashed line setting. It is implemented internally as [0, strokeDash]. Setting it to 8 will look more aesthetically pleasing.packages/sheets/src/basics/selection.ts:73 (opens in a new tab)
strokeWidthnumberThe volume of the selection border determines the thickness of the selection borderpackages/sheets/src/basics/selection.ts:65 (opens in a new tab)
widgetSize?numberThe volume of the touch points.packages/sheets/src/basics/selection.ts:94 (opens in a new tab)
widgetStroke?stringThe color of the touch points.packages/sheets/src/basics/selection.ts:102 (opens in a new tab)
widgetStrokeWidth?numberThe thickness of the border of the touch pointspackages/sheets/src/basics/selection.ts:98 (opens in a new tab)
widgetsISelectionWidgetConfigThe eight touch points of the selection. You can refer to Excel's formula and chart selections, which allow you to manually adjust the size of the selection. Univer has four more touch points (up, down, left, and right) than Excel. https://support.microsoft.com/en-us/office/select-data-for-a-chart-5fca57b7-8c52-4e09-979a-631085113862 (opens in a new tab)packages/sheets/src/basics/selection.ts:90 (opens in a new tab)

Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.