CustomStyleFileName
MainWeb.CustomStyleFileName property
Hämtar eller ställer in filnamnet för den anpassade stilen.
public string CustomStyleFileName { get; set; }
Anmärkningar
Den anpassade stilfilen är en XML-fil. När filnamnet ställs in kommer filen att laddas omedelbart. Hör är innehållet i “standardförinställd stil” ————– ————————————————– <Aspose.Cells.GridWeb. TittareStyemplate runat = “server” headerBarWidth = “30pt” ScrollBarBasecolor = "" FrameTableTyle-BorderTyle = “Solid” FrametableTyle-LeftBorderStyleBorderWidth = "" FrameTableLestyle-LeftBorderTySty -BorderColor="" FrameTableStyle-BorderWidth=“1px” FrameTableStyle-CellSpacing=“0” FrameTableStyle-BorderColor=“Grå” FrameTableStyle-CellPadding=“0” FrameTableStyle-Top-BorderStyl=“ColorBorderStyle-BorderStyl"StyleBorderStyle” FrameTableStyle-BottomBorderStyle-BorderWidth="" FrameTableStyle-BottomBorderStyle-BorderColor="" HeaderBarStyle-LeftBorderStyle-BorderStyle=“Solid” HeaderBorderStyle-LeftBorder erWidth=“1px” HeaderBarStyle-LeftBorderStyle-BorderColor=“White” HeaderBarStyle-VerticalAlign=“Middle” HeaderBarStyle-RightBorderStyle-BorderStyle=“Färg” HeaderBarStyle-BordeStyle-Borde_Right_0 HeaderBarStyle-BorderWidth=“1px” HeaderBarStyle-Font-Size=“10pt” HeaderBarStyle-BorderColor=“Grå” HeaderBarStyle-BorderStyle=“Solid” HeaderBarStyle-Horizontal-Horizontal-FärgBarnyl=“BordeBlack-Style"Style-Black-Style"Style-Black"Stål” =“Solid” HeaderBarStyle-TopBorderStyle-BorderWidth=“1px” HeaderBarStyle-TopBorderStyle-BorderColor=“White” HeaderBarStyle-BackColor="#E0E0E0" HeaderBarStyle-BottomBorderStyle-BorderStyle=“Solid” HeaderBarStyle-BottomBorderStyle-BorderWidth=“1px” HeaderBarStyle-BottomBorderStyle-BorderColor=“Grå” ViewTableStyle-LeftBorderStyle-BorderWidth="" ViewTableStyle-LeftBorderStyle-BorderColor="" ViewTableStyle-LayoutFixed=“Fixed”_TableBertyS le-BorderWidth="" ViewTableStyle-RightBorderStyle-BorderColor="" ViewTableStyle-BorderWidth=“0px” ViewTableStyle-CellSpacing=“0” ViewTableStyle-CellPadding=“0” ViewTableStyle-BorderStyle-BordeColorStyle-BordeBordeBorderStyle-Top-Top" "" ViewTableStyle-BottomBorderStyle-BorderWidth="" ViewTableStyle-BottomBorderStyle-BorderColor="" BottomTableStyle-LeftBorderStyle-BorderWidth="" BottomTableStyle-LeftBorderStyle-BorderColor="" BottomTableStyle-LayoutFixed=“Fixed” 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=“Grå” 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=“Grå” ActiveTabStyle-ForeColor=“Svart” ActiveTabStyle-TopBorderStyle-BorderWidth="" ActiveTabStyle-TopBorderStyle-BorderColorBylth" Active-BorderColorBylth" Active-BorderColorBylth" ="" ActiveTabStyle-BottomBorderStyle-BorderColor="" HeaderBarTableStyle-LeftBorderStyle-BorderWidth="" HeaderBarTableStyle-LeftBorderStyle-BorderColor="" HeaderBarTableStyle-LayoutFixed=“Fixed” 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-Gray" TabStyle-Gray" TabStyle-Gray “Svart” TabStyle-TopBorderStyle-BorderWidth="" TabStyle-TopBorderStyle-BorderColor="" TabStyle-BackColor="#E0E0E0" TabStyle-BottomBorderStyle-BorderWidth=“Color-Bord_0” TabStyle-Bord=“Color-Bordx=“Color-Bordx=“Color-Bordx=“Color-Bordx </Aspose.Cells.GridWeb.ViewerStyleTemplate>
Exempel
[C#]
GridWeb1.CustomStyleFileName = "c:\\style\\mystyle.xml";
[Visual Basic]
GridWeb1.CustomStyleFileName = "c:\\style\\mystyle.xml"
Se även
- class MainWeb
- namnutrymme Aspose.Cells.GridWeb
- hopsättning Aspose.Cells.GridWeb