CustomStyleFileName
MainWeb.CustomStyleFileName property
获取或设置自定义样式文件名。
public string CustomStyleFileName { get; set; }
评论
自定义样式文件为XML文件。 设置文件名时,文件会立即加载。 听到的是“标准预设样式”的内容 ————- —————————————— <Aspose.Cells.GridWeb. ViewerStyleTemplate runat=“server” HeaderBarWidth=“30pt” ScrollBarBaseColor="" FrameTableStyle-BorderStyle=“Solid” FrameTableStyle-LeftBorderStyle-BorderWidth="" FrameTableStyle-LeftBorderStyle-BorderColor=““FrameTableStyle-RightBorderStyle-BorderWidth=”” FrameTableStyle-RightBorderStyle -BorderColor=““FrameTableStyle-BorderWidth=“1px” FrameTableStyle-CellSpacing=“0"FrameTableStyle-BorderColor=“Gray"FrameTableStyle-CellPadding=“0"FrameTableStyle-TopBorderStyle-BorderWidth=““FrameTableStyle-TopBorderStyle-BorderColor=”” FrameTableStyle-BottomBorderStyle-BorderWidth=““FrameTableStyle-BottomBorderStyle-BorderColor=““HeaderBarStyle-LeftBorderStyle-BorderStyle=“Solid” HeaderBarStyle-LeftBorderStyle-Bord erWidth=“1px” HeaderBarStyle-LeftBorderStyle-BorderColor=“White” HeaderBarStyle-VerticalAlign=“Middle” HeaderBarStyle-RightBorderStyle-BorderStyle=“Solid” HeaderBarStyle-RightBorderStyle-BorderWidth=“1px” HeaderBarStyle-RightBorderStyle-BorderColor=“Gray” HeaderBarStyle-BorderWidth=“1px” HeaderBarStyle-Font-Size=“10pt” HeaderBarStyle-BorderColor=“Gray” HeaderBarStyle-BorderStyle=“Solid” HeaderBarStyle-HorizontalAlign=“Center” HeaderBarStyle-ForeColor=“Black” HeaderBarStyle-TopBorderStyle-BorderStyle =“Solid” HeaderBarStyle-TopBorderStyle-BorderWidth=“1px” HeaderBarStyle-TopBorderStyle-BorderColor=“White” HeaderBarStyle-BackColor="#E0E0E0” HeaderBarStyle-BottomBorderStyle-BorderStyle=“Solid” HeaderBarStyle-BottomBorderStyle-BorderWidth=“1px” HeaderBarStyle-BottomBorderStyle-BorderColor=“灰色” ViewTableStyle-LeftBorderStyle-BorderWidth=”” ViewTableStyle-LeftBorderStyle-BorderColor=”” ViewTableStyle-LayoutFixed=“Fixed” ViewTableStyle-RightBorderSty le-BorderWidth=““ViewTableStyle-RightBorderStyle-BorderColor=““ViewTableStyle-BorderWidth=“0px” ViewTableStyle-CellSpacing=“0” ViewTableStyle-CellPadding=“0” ViewTableStyle-TopBorderStyle-BorderWidth=““ViewTableStyle-TopBorderStyle-BorderColor= ““ViewTableStyle-BottomBorderStyle-BorderWidth=““ViewTableStyle-BottomBorderStyle-BorderColor=”” BottomTableStyle-LeftBorderStyle-BorderWidth=““BottomTableStyle-LeftBorderStyle-BorderColor=““BottomTableStyle-LayoutFixed=“固定"BottomTableStyle-RightBorderStyle-BorderWidth=”” BottomTableStyle-RightBorderStyle-BorderColor=““BottomTableStyle-BorderWidth=“0px"BottomTableStyle-CellSpacing=“0"BottomTableStyle-CellPadding=“1” BottomTableStyle-TopBorderStyle-BorderStyle=“Solid"BottomTableStyle-TopBorderStyle-BorderWidth=“1px"BottomTableStyle -TopBorderStyle-BorderColor=“灰色” BottomTableStyle-BottomBorderStyle-BorderWidth=““BottomTableStyle-BottomBorderStyle-BorderColor=““HeaderBarHeight=“15pt” ActiveTabSt yle-LeftBorderStyle-BorderWidth=”” ActiveTabStyle-LeftBorderStyle-BorderColor=““ActiveTabStyle-RightBorderStyle-BorderWidth=““ActiveTabStyle-RightBorderStyle-BorderColor=““ActiveTabStyle-Height=“15pt” ActiveTabStyle-BorderWidth=“1px” ActiveTabStyle- Font-Size=“10pt” ActiveTabStyle-BorderColor=“Gray” ActiveTabStyle-ForeColor=“Black” ActiveTabStyle-TopBorderStyle-BorderWidth=”” ActiveTabStyle-TopBorderStyle-BorderColor=”” ActiveTabStyle-BackColor=“White” ActiveTabStyle-BottomBorderStyle-BorderWidth =““ActiveTabStyle-BottomBorderStyle-BorderColor=”” HeaderBarTableStyle-LeftBorderStyle-BorderWidth=““HeaderBarTableStyle-LeftBorderStyle-BorderColor=““HeaderBarTableStyle-LayoutFixed=“固定"HeaderBarTableStyle-RightBorderStyle-BorderWidth=”” HeaderBarTableStyle-RightBorderStyle-BorderColor= "” HeaderBarTableStyle-BorderWidth=“0px” HeaderBarTableStyle-CellSpacing=“0” HeaderBarTableStyle-BorderCollapse=“Separate” HeaderBarTableStyle-CellPadding=“0” H eaderBarTableStyle-TopBorderStyle-BorderWidth=““HeaderBarTableStyle-TopBorderStyle-BorderColor=““HeaderBarTableStyle-BottomBorderStyle-BorderWidth=”” HeaderBarTableStyle-BottomBorderStyle-BorderColor=““TabStyle-LeftBorderStyle-BorderWidth=““TabStyle-LeftBorderStyle-BorderColor=““TabStyle -RightBorderStyle-BorderWidth=”” TabStyle-RightBorderStyle-BorderColor=““TabStyle-Height=“15pt” TabStyle-BorderWidth=“1px” TabStyle-Font-Size=“10pt” TabStyle-BorderColor=“灰色” TabStyle-ForeColor= “黑色” TabStyle-TopBorderStyle-BorderWidth=““TabStyle-TopBorderStyle-BorderColor=““TabStyle-BackColor="#E0E0E0” TabStyle-BottomBorderStyle-BorderWidth=““TabStyle-BottomBorderStyle-BorderColor=”” ScrollBarArrowColor=”"> </Aspose.Cells.GridWeb.ViewerStyleTemplate>
例子
[C#]
GridWeb1.CustomStyleFileName = "c:\\style\\mystyle.xml";
[Visual Basic]
GridWeb1.CustomStyleFileName = "c:\\style\\mystyle.xml"
也可以看看
- class MainWeb
- 命名空间 Aspose.Cells.GridWeb
- 部件 Aspose.Cells.GridWeb