CustomStyleFileName

MainWeb.CustomStyleFileName property

Obtient ou définit le nom du fichier de style personnalisé.

public string CustomStyleFileName { get; set; }

Remarques

Le fichier de style personnalisé est un fichier XML. Lorsque le nom du fichier est défini, le fichier sera chargé immédiatement. Entendre est le contenu du “style prédéfini standard” ————- ——————————————————— <Aspose.Cells.GridWeb. ViewerStyleTemplate runat=“serveur” 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=“Gris” FrameTableStyle-CellPadding=“0” FrameTableStyle-TopBorderStyle-BorderWidth="" FrameTableStyle-TopBorderStyle-BorderColor="" FrameTableStyle-BottomBorderStyle-BorderWidth="" FrameTableStyle-BottomBorderStyle-BorderColor="" HeaderBarStyle-LeftBorderStyle-BorderStyle=“Solide” HeaderBarStyle-LeftBorderStyle-Bord erWidth=“1px” HeaderBarStyle-LeftBorderStyle-BorderColor=“Blanc” HeaderBarStyle-VerticalAlign=“Moyen” HeaderBarStyle-RightBorderStyle-BorderStyle=“Solide” HeaderBarStyle-RightBorderStyle-BorderWidth=“1px” HeaderBarStyle-RightBorderStyle-BorderColor=“Gris” HeaderBarStyle-BorderWidth=“1px” HeaderBarStyle-Font-Size=“10pt” HeaderBarStyle-BorderColor=“Gris” HeaderBarStyle-BorderStyle=“Solide” HeaderBarStyle-HorizontalAlign=“Centre” HeaderBarStyle-ForeColor=“Noir” HeaderBarStyle-TopBorderStyle-BorderStyle =“Solide” HeaderBarStyle-TopBorderStyle-BorderWidth=“1px” HeaderBarStyle-TopBorderStyle-BorderColor=“Blanc” HeaderBarStyle-BackColor="#E0E0E0" HeaderBarStyle-BottomBorderStyle-BorderStyle=“Solide” HeaderBarStyle-BottomBorderStyle-BorderWidth=“1px” HeaderBarStyle-BottomBorderStyle-BorderColor=“Gris” ViewTableStyle-LeftBorderStyle-BorderWidth="" ViewTableStyle-LeftBorderStyle-BorderColor="" ViewTableStyle-LayoutFixed=“Fixe” 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=“Fixé” BottomTableStyle-RightBorderStyle-BorderWidth="" BottomTableStyle-RightBorderStyle-BorderColor="" BottomTableStyle-BorderWidth=“0px” BottomTableStyle-CellSpacing=“0” BottomTableStyle-CellPadding=“1” BottomTableStyle-TopBorderStyle-BorderStyle=“Solide” BottomTableStyle-TopBorderStyle-BorderWidth=“1px” BottomTableStyle -TopBorderStyle-BorderColor=“Gray” 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=“Gris” ActiveTabStyle-ForeColor=“Noir” ActiveTabStyle-TopBorderStyle-BorderWidth="" ActiveTabStyle-TopBorderStyle-BorderColor="" ActiveTabStyle-BackColor=“Blanc” ActiveTabStyle-BottomBorderStyle-BorderWidth ="" ActiveTabStyle-BottomBorderStyle-BorderColor="" HeaderBarTableStyle-LeftBorderStyle-BorderWidth="" HeaderBarTableStyle-LeftBorderStyle-BorderColor="" HeaderBarTableStyle-LayoutFixed=“Fixe” 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=“Gris” TabStyle-ForeColor= “Noir” TabStyle-TopBorderStyle-BorderWidth="" TabStyle-TopBorderStyle-BorderColor="" TabStyle-BackColor="#E0E0E0" TabStyle-BottomBorderStyle-BorderWidth="" TabStyle-BottomBorderStyle-BorderColor="" ScrollBarArrowColor=""> </Aspose.Cells.GridWeb.ViewerStyleTemplate>

Exemples

[C#]
	GridWeb1.CustomStyleFileName = "c:\\style\\mystyle.xml";

[Visual Basic]
	GridWeb1.CustomStyleFileName = "c:\\style\\mystyle.xml"

Voir également