ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2016-12-25 16:59:11

Youseefj
Member
Registered: 2016-12-18
Posts: 4

控件中是否有一些内置的模式窗体,如格式化单元格等。只需调用即可,不需再开发。

控件中是否有一些内置的模式窗体,如格式化单元格等。只需调用即可,不需再开发。
另 设置靠左,居中、字体等,不能实时,当单元格失去焦点时,才可。
但设置字体大小时可以。
如   Dim Ks = CurSheet.SelectionRange
        Dim Cell As unvell.ReoGrid.Cell
        For Me.Ki = Ks.Row To Ks.EndRow
            For Me.Kii = Ks.Col To Ks.EndCol
                Cell = CurSheet.GetCell(Ki, Kii)
                If Cell IsNot Nothing Then
                    Cell.Style.FontName = D_Font.CurrentValue 
                    Cell.Style.FontSize = Cell.Style.FontSize  如没有该行,则单元格失去焦点时,单元格显示新字体,否则作为旧安体。
                End If
            Next
        Next

另:
如何在表格上方显示公式编辑栏

Last edited by Youseefj (2016-12-25 17:06:15)

Offline

#2 2016-12-26 07:18:04

oops
Moderator
Registered: 2015-11-03
Posts: 54

Re: 控件中是否有一些内置的模式窗体,如格式化单元格等。只需调用即可,不需再开发。

>控件中是否有一些内置的模式窗体,如格式化单元格等。只需调用即可,不需再开发。
https://reogrid.net/document/built-in-cell-types/

格式化单元格是另外的内容:
https://reogrid.net/document/data-format/

>设置靠左,居中、字体等,不能实时,当单元格失去焦点时,才可。
是的,现在不能在编辑模式设置字体样式。

>如何在表格上方显示公式编辑栏
这个要靠应用程序来实现了。

Offline

Board footer

Powered by FluxBB