STYLEとは? わかりやすく解説

style

別表記:スタイル

「style」とは、時代・流派などの様式・行動などの独特なやり方・スタイル・文体・話しぶり・思想の表現法・流行のことを意味する英語表現である。

「style」とは・「style」の意味

「style」が名詞として使われるとき、文芸・建築などにおける時代・流派などの様式、行動などの独特なやり方、文体、話しぶり、思想の表現法、流行の型、ぜいたく、上品、型、称号、尖筆、暦法といった意味をもつ。また、副詞的に「~風に」という意味をもつこともある。「style」が動詞として使われるとき、一定の様式に合わせる・型に合わせて作るといった意味をもつ。

「style」の発音・読み方

「style」の発音記号は、「stὰɪl」である。カタカナで表記すると、「スタイル」となる、実際に発音する際は、「スタァィル」というようになる。

「s」は、舌先を前歯の裏の歯茎に近づけ、その隙間から息を出して「ス」と発音する。「t」は、「s」と同様に舌先を前歯の裏の歯茎につけた状態にし、息を止めた状態から、勢いよく息を破裂させるようにして「トゥ」という音を出す。「a」は、口を広く開け、「ア」と発音する。「i」は、口をやや横に開き、舌と上顎との間の空間を狭くしてあまり口を開かず「イ」と発音する。「ai」は、二重母音であるため、「a」から「i」へスムーズに変化させ、1つの音のように発音する。「a」ははっきりと強く、「i」を弱めにぼかして発音するとよい。「l」は、舌先を前歯の裏の歯茎につけ、「ウ」と「ル」を同時に出すように発音する。

「style」の語源・由来

ラテン語で「ろう板に書くための鉄筆」を意味する「stilus」が変化し「style」となった。ドイツ語の「Stil」、フランス語の「style」と同じ語源をもつ。「鉄筆」という書くための方法を表す意味から、鉄筆で書かれた文章の表現上の特色へと転じ、「文体」「様式」「流行の型」を意味するようになった。

「style属性」とは

「style属性」は、HTMLに関連する用語で、HTMLページ内で目的の要素に直接的にスタイルを適用することができる属性のことを指す。「style属性」によって、HTML文書の中の要素にCSSのプロパティと値を直接記入することが可能となる。ただし、「style属性」は「styleタグ」とは別物である。また、コンテンツの表示・非表示のために「style属性」を使うことは、非準拠となる。

「styleタグ」とは

styleタグ(style要素)は、HTMLタグの一種である。headタグ内に記述し、タグの開始タグと終了タグの間にCSSによるスタイル情報を記述する。使用できる属性は、media・scoped・type・グローバル属性である。

「style」の使い方・例文

「style」を「文芸・建築などにおける時代・流派などの様式」という意味で用いる場合は、「The church is built in Gothic style.(その教会はゴシック様式の建築である)」、「style of art(美術様式)」「style of architecture(建築様式)」などといった表現となる。

「style」を「やり方」「スタイル」という意味で用いる場合は、「My mother never changed her style of living.(私の母は少しも生活様式を変えなかった)」、「It is a style of communication in India.(それはインドのコミュニケーション様式だ)」、「It is a style of a decade ago.(それは一昔前のやり方だ)」などといった表現となる。

「style」を副詞的に「~風に」「~流に」という意味で用いる場合、「sit Japanese style(日本式に座る)」「live French style(フランス流に生活する)」といった表現となる。

「style」を「文体」「話しぶり」「思想の表現法」という意味で用いる場合、「Your essay is really good in regard to style(あなたのエッセイは文体に関してはとても良い)」「He told me so in a plain style(彼は平易な表現法で私にそう伝えた)」などといった表現となる。

「style」を「流行の型」という意味で用いる場合、「These shoes of mine are out of style(私のこの靴は流行遅れだ)」「It is the latest styles in clothes(それは服の最新流行型だ)」などといった表現となる。

「style」を「ぜいたく」という意味で用いる場合、「Let's eat in style(豪勢に食事をしよう)」などの表現となる。

スタイル【style】

読み方:すたいる

1 からだつき。姿。格好。「すらりとして―がいい」

2 服飾・頭髪などの型。「最新流行の―」「ヘア―」

3 建築・美術・音楽などの様式。型。「前衛的―のビル」「演奏―」

4 文章や文学作品の表現形式。特に、文体。「独自の―をもつ作家」

5 個人や集団などに固有の、考え方や行動のしかた。「ライフ―」


style インラインにおけるスタイルシートの設定

 
機能と値 HTML * Windows Macintosh
・スタイルシートで定義されている属性 ○ IE3,4,5,6 NS4,6 IE3,4,5 NS4,6
※ HTMLの表記
◎: HTML4.01Strictで定義されている必須の属性と値
○: HTML4.01Strictで定義されている属性と値
▽: HTML4.01Transitionalの属性と値(非推奨)

<style> 〜 </style> スタイルシート

HTML仕様 : HTML4.01Strict

属性の機能と値   DTD ※
type MIMEタイプ: スタイルシートの MIMEタイプを指定する ◎
media メディアタイプ: スタイルシートが出力の対象とするメディアを指定する
カンマで区切ることで複数のメディアを列記することもできる。
デフォルト値は 「screen」となっている
○

スタイルシートを組み込みます。head要素 内でのみ記述可能で、複数のスタイルシートの定義が可能です。

※ DTDの表記
◎: HTML4.01Strictで定義されている必須の属性と値
○: HTML4.01Strictで定義されている属性と値
▽: HTML4.01Transitionalの属性と値(非推奨)

Style イベント


Style クラス

ASP.NET モバイル コントロールのスタイル特性を 1 つのオブジェクトに整理します。

名前空間: System.Web.UI.MobileControls
アセンブリ: System.Web.Mobile (system.web.mobile.dll 内)
構文構文

Public Class Style
    Implements IParserAccessor, ITemplateable, IStateManager,
 ICloneable
public class Style : IParserAccessor, ITemplateable,
 IStateManager, 
    ICloneable
public ref class Style : IParserAccessor, ITemplateable,
 IStateManager, 
    ICloneable
public class Style implements IParserAccessor,
 ITemplateable, 
    IStateManager, ICloneable
public class Style implements IParserAccessor,
 ITemplateable, 
    IStateManager, ICloneable
解説解説
使用例使用例

3 つのユーザー定義スタイルを 1 つの StyleSheet オブジェクトに整理する例を次に示します。この 3 つのスタイルに対応する 3 つの値が SelectionList オブジェクトに保持されます。OnClick コマンド イベントが発生すると、SelectStyle 関数が呼び出されます。この関数は、TextView オブジェクトの StyleReference プロパティを変更します。

<%@ Page Language="VB" 
    Inherits="System.Web.UI.MobileControls.MobilePage"
 %>
<%@ Register TagPrefix="mobile" 
    Namespace="System.Web.UI.MobileControls"
 
    Assembly="System.Web.Mobile"
 %>

<script runat="server">
    Private Sub SelectStyle(ByVal
 sender As Object, _
        ByVal e As EventArgs)
        
        ' Retrieve the style name as a string
        Dim myStyle As String
 = SelectionList1.Selection.ToString()
        ' Match the style name and apply the style to TextView1
        Select Case myStyle
            Case "hot"
                TextView1.StyleReference = "Style1"
            Case "medium"
                TextView1.StyleReference = "Style2"
            Case "mild"
                TextView1.StyleReference = "Style3"
        End Select
    End Sub
</script>

<html  >
<body>
<mobile:StyleSheet id="StyleSheet1" runat="server">
    <mobile:Style font-size="Large" font-name="Arial"
 font-bold="true"
        forecolor="red" font-italic="true"
 backcolor="#E0E0E0" 
        wrapping="wrap" name="Style1">
    </mobile:Style>
    <mobile:Style font-size="Normal" font-name="Arial"
 font-bold="false" 
       forecolor="Blue" font-italic="true"
 backcolor="blue" 
       wrapping="NoWrap" name="Style2">
    </mobile:Style>
    <mobile:Style font-size="Small" font-name="Arial
 Narrow" 
       font-bold="false" forecolor="Green"
 font-italic="false" 
       backcolor="Green" wrapping="NoWrap"
 name="Style3">
    </mobile:Style>
</mobile:StyleSheet>

<mobile:form id="Form1" runat="server">
    <mobile:Label id="Label1" runat="server"
 Text="Today's Special" 
        StyleReference="title" />
    <mobile:TextView id="TextView1" runat="server"
 
        StyleReference="Style1">
        Chili
    </mobile:TextView>
    <mobile:SelectionList runat="server" id="SelectionList1">
        <item Text="hot" Value="hot"/>
        <item Text="medium" Value="medium"/>
        <item Text="mild" Value="mild"/>
    </mobile:SelectionList>
    <mobile:Command ID="Command1" runat="server"
 Text="Select Style" 
        OnClick="SelectStyle" />
    </mobile:form>
</body>
</html>
<%@ Page Language="C#" 
    Inherits="System.Web.UI.MobileControls.MobilePage" %>
<%@ Register TagPrefix="mobile" 
    Namespace="System.Web.UI.MobileControls" 
    Assembly="System.Web.Mobile" %>

<script runat="server">
    void SelectStyle(object sender, EventArgs e)
    {
        // Retrieve the style name as a string.
        String myStyle = SelectionList1.Selection.ToString();
        // Match the style name and apply the style to TextView1.
        switch (myStyle)
        {
            case "hot":
                TextView1.StyleReference = "Style1";
                break;
            case "medium":
                TextView1.StyleReference = "Style2";
                break;
            case "mild":
                TextView1.StyleReference = "Style3";
                break;
        }
    }
</script>

<html  >
<body>
<mobile:StyleSheet id="StyleSheet1" runat="server">
    <mobile:Style font-size="Large" font-name="Arial" font-bold="true"
        forecolor="red" font-italic="true"
 backcolor="#E0E0E0" 
        wrapping="wrap" name="Style1">
    </mobile:Style>
    <mobile:Style font-size="Normal" font-name="Arial" font-bold="false"
 
       forecolor="Blue" font-italic="true"
 backcolor="blue" 
       wrapping="NoWrap" name="Style2">
    </mobile:Style>
    <mobile:Style font-size="Small" font-name="Arial Narrow"
 
       font-bold="false" forecolor="Green"
 font-italic="false" 
       backcolor="Green" wrapping="NoWrap" name="Style3">
    </mobile:Style>
</mobile:StyleSheet>
<mobile:form id="Form1" runat="server">
    <mobile:Label id="Label1" runat="server" Text="Today's
 Special" 
        StyleReference="title" />
    <mobile:TextView id="TextView1" runat="server" 
        StyleReference="Style1">
        Chili
    </mobile:TextView>
    <mobile:SelectionList runat="server" id="SelectionList1">
        <item Text="hot" Value="hot"/>
        <item Text="medium" Value="medium"/>
        <item Text="mild" Value="mild"/>
    </mobile:SelectionList>
    <mobile:Command runat="server" Text="Select Style" 
        OnClick="SelectStyle" />
    </mobile:form>
</body>
</html>
.NET Framework のセキュリティ.NET Framework のセキュリティ
継承階層継承階層
System.Object
  System.Web.UI.MobileControls.Style
     System.Web.UI.MobileControls.PagerStyle
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Style クラス

Web サーバー コントロールのスタイルを表します。

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Class Style
    Inherits Component
    Implements IStateManager
public class Style : Component, IStateManager
public ref class Style : public
 Component, IStateManager
public class Style extends Component implements
 IStateManager
public class Style extends
 Component implements IStateManager
解説解説
使用例使用例

この例では、Style オブジェクトを使用して、複数のコントロールのスタイル プロパティを一度に変更する方法を示します。Style プロパティのいずれかの値を変更するたびに、各コントロールはその ApplyStyle メソッドを呼び出す必要があります。含まれているすべてのコントロールが、ここに示すすべてのプロパティをサポートするわけではありません。特定のプロパティをサポートしないコントロールの場合、そのプロパティの値が変更されても、そのコントロールの外観は変わりません。

メモメモ

次のコード サンプルはシングルファイル コード モデルを使用しており、分離コード ファイルに直接コピーされた場合は正常に動作しない可能性があります。このコード サンプルは、拡張子が .aspx の空のテキスト ファイルにコピーする必要があります。Web フォームのコード モデルの詳細については、「ASP.NET Web ページのコード モデル」を参照してください。

<%@ Page language="VB" AutoEventWireup="true"
 %>
<%@ Import Namespace="System.Drawing"
 %>
<%@ Import Namespace="System.Data"
 %>

<html>
    <head>
        <script runat="server">

            Private Dim primaryStyle As
 New Style()

            Sub Page_Load(sender As Object,
 e As System.EventArgs)
                If Not Page.IsPostBack Then
                    ' Add data to the borderColorList, 
                    ' backColorList, and foreColorList controls.
                    Dim colors As New
 ListItemCollection()
                    colors.Add(Color.Black.Name)
                    colors.Add(Color.Blue.Name)
                    colors.Add(Color.Green.Name)
                    colors.Add(Color.Orange.Name)
                    colors.Add(Color.Purple.Name)
                    colors.Add(Color.Red.Name)
                    colors.Add(Color.White.Name)
                    colors.Add(Color.Yellow.Name)
                    borderColorList.DataSource = colors
                    borderColorList.DataBind()        
                    backColorList.DataSource = colors
                    backColorList.DataBind()
                    foreColorList.DataSource = colors
                    foreColorList.DataBind()
                
                    ' Add data to the borderStyleList control.
                    Dim styles As New
 ListItemCollection()
                    Dim styleType As Type =
 GetType(BorderStyle)
                    Dim s As String
                    For Each s in
 [Enum].GetNames(styleType)
                        styles.Add(s)
                    Next s
                    borderStyleList.DataSource = styles
                    borderStyleList.DataBind()  

                    ' Add data to the borderWidthList control.
                    Dim widths As New
 ListItemCollection()
                    Dim i As Integer
                    for i = 0 To 10
                        widths.Add(i.ToString() & "px")
                    Next i
                    borderWidthList.DataSource = widths
                    borderWidthList.DataBind()

                    ' Add data to the fontNameList control.
                    Dim names As New
 ListItemCollection()
                    names.Add("Arial")
                    names.Add("Courier")
                    names.Add("Garamond")
                    names.Add("Time New Roman")
                    names.Add("Verdana")
                    fontNameList.DataSource = names
                    fontNameList.DataBind()

                    ' Add data to the fontSizeList control.
                    Dim fontSizes As New
 ListItemCollection()
                    fontSizes.Add("Small")
                    fontSizes.Add("Medium")
                    fontSizes.Add("Large")
                    fontSizes.Add("10pt")
                    fontSizes.Add("14pt")
                    fontSizes.Add("20pt")
                    fontSizeList.DataSource = fontSizes
                    fontSizeList.DataBind()
                    
                    ' Set primaryStyle as the style for each control.
                    Label1.ApplyStyle(primaryStyle)
                    ListBox1.ApplyStyle(primaryStyle)
                    Button1.ApplyStyle(primaryStyle)
                    Table1.ApplyStyle(primaryStyle)
                    TextBox1.ApplyStyle(primaryStyle)
                End If
            End Sub

            Sub ChangeBorderColor(sender As
 Object, e As System.EventArgs)
                primaryStyle.BorderColor = _
                    Color.FromName(borderColorList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeBackColor(sender As Object,
 e As System.EventArgs)
                primaryStyle.BackColor = _
                    Color.FromName(backColorList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeForeColor(sender As Object,
 e As System.EventArgs)
                primaryStyle.ForeColor = _
                    Color.FromName(foreColorList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeBorderStyle(sender As
 Object, e As System.EventArgs)
                primaryStyle.BorderStyle = _
                    CType([Enum].Parse(GetType(BorderStyle), _
                    borderStyleList.SelectedItem.Text), BorderStyle)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeBorderWidth(sender As
 Object, e As System.EventArgs)
                primaryStyle.BorderWidth = _
                    Unit.Parse(borderWidthList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeFont(sender As Object,
 e As System.EventArgs)
                primaryStyle.Font.Name = _
                    fontNameList.SelectedItem.Text
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeFontSize(sender As Object,
 e As System.EventArgs)
                primaryStyle.Font.Size = _
                    FontUnit.Parse(fontSizeList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub
        </script>
    </head>

    <body>
        <form id="Form1" runat="server">
            <table cellPadding="6" border="0">
                <tr>
                    <td>
                        <asp:label id="Label1"
 
                            Text="Border Properties Example"
 Runat="server">
                            <center><br>Label Styles</center>
                        </asp:label>
                    </td>
                    <td>
                        <asp:button id="Button1"
 runat="server" 
                            Text="Button Styles">
                        </asp:button>
                    </td>
                    <td>
                        <asp:listbox id="ListBox1"
 Runat="server">
                            <asp:ListItem Value="0"
 Text="List Item 0">
                            </asp:ListItem>
                            <asp:ListItem Value="1"
 Text="List Item 1">
                            </asp:ListItem>
                            <asp:ListItem Value="2"
 Text="List Item 2">
                            </asp:ListItem>
                        </asp:listbox>
                    </td>
                    <td>
                        <asp:textbox id="TextBox1"
 
                            Text="TextBox Styles"
 Runat="server">
                        </asp:textbox>
                    </td>
                    <td>
                        <asp:table id="Table1"
 Runat="server">
                            <asp:TableRow>
                                <asp:TableCell Text="(0,0)"></asp:TableCell>
                                <asp:TableCell Text="(0,1)"></asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell Text="(1,0)"></asp:TableCell>
                                <asp:TableCell Text="(1,1)"></asp:TableCell>
                            </asp:TableRow>
                        </asp:table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label Runat="server"
 Text="Border Color:">
                        </asp:Label>
                        <asp:dropdownlist id="borderColorList"
 
                            Runat="server" AutoPostBack="True"
 
                            OnSelectedIndexChanged="ChangeBorderColor">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server"
 Text="Border Style:">
                        </asp:Label>
                        <asp:dropdownlist id="borderStyleList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBorderStyle">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server"
 Text="Border Width">
                        </asp:Label>
                        <asp:dropdownlist id="borderWidthList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBorderWidth">
                        </asp:dropdownlist>
                    </td>
                    <td>
                        <asp:Label Runat="server"
 Text="Back Color:">
                        </asp:Label>
                        <asp:dropdownlist id="backColorList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBackColor">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server"
 Text="Foreground Color:">
                        </asp:Label>
                        <asp:dropdownlist id="foreColorList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeForeColor">
                        </asp:dropdownlist>
                    </td>
                    <td>
                        <asp:Label Runat="server"
 Text="Font Name:">
                        </asp:Label>
                        <asp:dropdownlist id="fontNameList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeFont">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server"
 Text="Font Size:">
                        </asp:Label>
                        <asp:dropdownlist id="fontSizeList"
 
                            Runat="server" AutoPostBack="True"
 
                            OnSelectedIndexChanged="ChangeFontSize">
                        </asp:dropdownlist>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
<%@ Page language="C#" AutoEventWireup="true"
 %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Data" %>

<html>
    <head>
        <script runat="server">

            private Style primaryStyle = new
 Style();

            void Page_Load(object sender, System.EventArgs e)
            {
                if (!Page.IsPostBack)
                {
                    // Add data to the borderColorList, 
                    // backColorList, and foreColorList controls.
                    ListItemCollection colors = new ListItemCollection();
                    colors.Add(Color.Black.Name);
                    colors.Add(Color.Blue.Name);
                    colors.Add(Color.Green.Name);
                    colors.Add(Color.Orange.Name);
                    colors.Add(Color.Purple.Name);
                    colors.Add(Color.Red.Name);
                    colors.Add(Color.White.Name);
                    colors.Add(Color.Yellow.Name);
                    borderColorList.DataSource = colors;
                    borderColorList.DataBind();         
                    backColorList.DataSource = colors;
                    backColorList.DataBind();
                    foreColorList.DataSource = colors;
                    foreColorList.DataBind();

                    // Add data to the borderStyleList control.
                    ListItemCollection styles = new ListItemCollection();
                    Type styleType = typeof(BorderStyle);
                    foreach (string s in
 Enum.GetNames(styleType))
                    {
                        styles.Add(s);
                    }
                    borderStyleList.DataSource = styles;
                    borderStyleList.DataBind();  

                    // Add data to the borderWidthList control.
                    ListItemCollection widths = new ListItemCollection();
                    for (int i = 0; i <
 11; i++)
                    {
                        widths.Add(i.ToString() + "px");
                    }
                    borderWidthList.DataSource = widths;
                    borderWidthList.DataBind();

                    // Add data to the fontNameList control.
                    ListItemCollection names = new ListItemCollection();
                    names.Add("Arial");
                    names.Add("Courier");
                    names.Add("Garamond");
                    names.Add("Time New Roman");
                    names.Add("Verdana");
                    fontNameList.DataSource = names;
                    fontNameList.DataBind();

                    // Add data to the fontSizeList control.
                    ListItemCollection fontSizes = new ListItemCollection();
                    fontSizes.Add("Small");
                    fontSizes.Add("Medium");
                    fontSizes.Add("Large");
                    fontSizes.Add("10pt");
                    fontSizes.Add("14pt");
                    fontSizes.Add("20pt");
                    fontSizeList.DataSource = fontSizes;
                    fontSizeList.DataBind();
                    
                    //Set primaryStyle as the style for each control.
                    Label1.ApplyStyle(primaryStyle);
                    ListBox1.ApplyStyle(primaryStyle);
                    Button1.ApplyStyle(primaryStyle);
                    Table1.ApplyStyle(primaryStyle);
                    TextBox1.ApplyStyle(primaryStyle);
                }
            }
            void ChangeBorderColor(object sender, System.EventArgs
 e)
            {
                primaryStyle.BorderColor = 
                    Color.FromName(borderColorList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }
    
            void ChangeBackColor(object sender, System.EventArgs
 e)
            {
                primaryStyle.BackColor = 
                    Color.FromName(backColorList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeForeColor(object sender, System.EventArgs
 e)
            {
                primaryStyle.ForeColor = 
                    Color.FromName(foreColorList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeBorderStyle(object sender, System.EventArgs
 e)
            {
                primaryStyle.BorderStyle = 
                    (BorderStyle)Enum.Parse(typeof(BorderStyle), 
                    borderStyleList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeBorderWidth(object sender, System.EventArgs
 e)
            {
                primaryStyle.BorderWidth = 
                    Unit.Parse(borderWidthList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeFont(object sender, System.EventArgs e)
            {
                primaryStyle.Font.Name = 
                    fontNameList.SelectedItem.Text;
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeFontSize(object sender, System.EventArgs
 e)
            {
                primaryStyle.Font.Size = 
                    FontUnit.Parse(fontSizeList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }
        </script>
    </head>

    <body>
        <form id="Form1" runat="server">
            <table cellPadding="6" border="0">
                <tr>
                    <td>
                        <asp:label id="Label1" 
                            Text="Border Properties Example" Runat="server">
                            <center><br>Label Styles</center>
                        </asp:label>
                    </td>
                    <td>
                        <asp:button id="Button1" runat="server"
 
                            Text="Button Styles">
                        </asp:button>
                    </td>
                    <td>
                        <asp:listbox id="ListBox1" Runat="server">
                            <asp:ListItem Value="0" Text="List
 Item 0">
                            </asp:ListItem>
                            <asp:ListItem Value="1" Text="List
 Item 1">
                            </asp:ListItem>
                            <asp:ListItem Value="2" Text="List
 Item 2">
                            </asp:ListItem>
                        </asp:listbox>
                    </td>
                    <td>
                        <asp:textbox id="TextBox1" 
                            Text="TextBox Styles" Runat="server">
                        </asp:textbox>
                    </td>
                    <td>
                        <asp:table id="Table1" Runat="server">
                            <asp:TableRow>
                                <asp:TableCell Text="(0,0)"></asp:TableCell>
                                <asp:TableCell Text="(0,1)"></asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell Text="(1,0)"></asp:TableCell>
                                <asp:TableCell Text="(1,1)"></asp:TableCell>
                            </asp:TableRow>
                        </asp:table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label Runat="server" Text="Border
 Color:">
                        </asp:Label>
                        <asp:dropdownlist id="borderColorList" 
                            Runat="server" AutoPostBack="True"
 
                            OnSelectedIndexChanged="ChangeBorderColor">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server" Text="Border
 Style:">
                        </asp:Label>
                        <asp:dropdownlist id="borderStyleList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBorderStyle">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server" Text="Border
 Width">
                        </asp:Label>
                        <asp:dropdownlist id="borderWidthList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBorderWidth">
                        </asp:dropdownlist>
                    </td>
                    <td>
                        <asp:Label Runat="server" Text="Back Color:">
                        </asp:Label>
                        <asp:dropdownlist id="backColorList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBackColor">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server" Text="Foreground
 Color:">
                        </asp:Label>
                        <asp:dropdownlist id="foreColorList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeForeColor">
                        </asp:dropdownlist>
                    </td>
                    <td>
                        <asp:Label Runat="server" Text="Font Name:">
                        </asp:Label>
                        <asp:dropdownlist id="fontNameList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeFont">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server" Text="Font Size:">
                        </asp:Label>
                        <asp:dropdownlist id="fontSizeList" 
                            Runat="server" AutoPostBack="True"
 
                            OnSelectedIndexChanged="ChangeFontSize">
                        </asp:dropdownlist>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
.NET Framework のセキュリティ.NET Framework のセキュリティ
継承階層継承階層
System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
      System.Web.UI.WebControls.Style
         派生クラス
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Style コンストラクタ ()

既定値を使用して Style クラスの新しいインスタンスを初期化します。

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

解説解説
使用例使用例

この例では、Style オブジェクトを使用して、複数のコントロールのスタイル プロパティを一度に変更する方法を示します。Style プロパティのいずれかの値を変更するたびに、各コントロールはその ApplyStyle メソッドを呼び出す必要があります。含まれているすべてのコントロールが、ここに示すすべてのプロパティをサポートするわけではありません。特定のプロパティをサポートしないコントロールの場合、そのプロパティの値が変更されても、そのコントロールの外観は変わりません。

メモメモ

次のコード サンプルはシングルファイル コード モデルを使用しており、分離コード ファイルに直接コピーされた場合は正常に動作しない可能性があります。このコード サンプルは、拡張子が .aspx の空のテキスト ファイルにコピーする必要があります。Web フォームのコード モデルの詳細については、「ASP.NET Web ページのコード モデル」を参照してください。

<%@ Page language="VB" AutoEventWireup="true"
 %>
<%@ Import Namespace="System.Drawing"
 %>
<%@ Import Namespace="System.Data"
 %>

<html>
    <head>
        <script runat="server">

            Private Dim primaryStyle As
 New Style()

            Sub Page_Load(sender As Object,
 e As System.EventArgs)
                If Not Page.IsPostBack Then
                    ' Add data to the borderColorList, 
                    ' backColorList, and foreColorList controls.
                    Dim colors As New
 ListItemCollection()
                    colors.Add(Color.Black.Name)
                    colors.Add(Color.Blue.Name)
                    colors.Add(Color.Green.Name)
                    colors.Add(Color.Orange.Name)
                    colors.Add(Color.Purple.Name)
                    colors.Add(Color.Red.Name)
                    colors.Add(Color.White.Name)
                    colors.Add(Color.Yellow.Name)
                    borderColorList.DataSource = colors
                    borderColorList.DataBind()        
                    backColorList.DataSource = colors
                    backColorList.DataBind()
                    foreColorList.DataSource = colors
                    foreColorList.DataBind()
                
                    ' Add data to the borderStyleList control.
                    Dim styles As New
 ListItemCollection()
                    Dim styleType As Type =
 GetType(BorderStyle)
                    Dim s As String
                    For Each s in
 [Enum].GetNames(styleType)
                        styles.Add(s)
                    Next s
                    borderStyleList.DataSource = styles
                    borderStyleList.DataBind()  

                    ' Add data to the borderWidthList control.
                    Dim widths As New
 ListItemCollection()
                    Dim i As Integer
                    for i = 0 To 10
                        widths.Add(i.ToString() & "px")
                    Next i
                    borderWidthList.DataSource = widths
                    borderWidthList.DataBind()

                    ' Add data to the fontNameList control.
                    Dim names As New
 ListItemCollection()
                    names.Add("Arial")
                    names.Add("Courier")
                    names.Add("Garamond")
                    names.Add("Time New Roman")
                    names.Add("Verdana")
                    fontNameList.DataSource = names
                    fontNameList.DataBind()

                    ' Add data to the fontSizeList control.
                    Dim fontSizes As New
 ListItemCollection()
                    fontSizes.Add("Small")
                    fontSizes.Add("Medium")
                    fontSizes.Add("Large")
                    fontSizes.Add("10pt")
                    fontSizes.Add("14pt")
                    fontSizes.Add("20pt")
                    fontSizeList.DataSource = fontSizes
                    fontSizeList.DataBind()
                    
                    ' Set primaryStyle as the style for each control.
                    Label1.ApplyStyle(primaryStyle)
                    ListBox1.ApplyStyle(primaryStyle)
                    Button1.ApplyStyle(primaryStyle)
                    Table1.ApplyStyle(primaryStyle)
                    TextBox1.ApplyStyle(primaryStyle)
                End If
            End Sub

            Sub ChangeBorderColor(sender As
 Object, e As System.EventArgs)
                primaryStyle.BorderColor = _
                    Color.FromName(borderColorList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeBackColor(sender As Object,
 e As System.EventArgs)
                primaryStyle.BackColor = _
                    Color.FromName(backColorList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeForeColor(sender As Object,
 e As System.EventArgs)
                primaryStyle.ForeColor = _
                    Color.FromName(foreColorList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeBorderStyle(sender As
 Object, e As System.EventArgs)
                primaryStyle.BorderStyle = _
                    CType([Enum].Parse(GetType(BorderStyle), _
                    borderStyleList.SelectedItem.Text), BorderStyle)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeBorderWidth(sender As
 Object, e As System.EventArgs)
                primaryStyle.BorderWidth = _
                    Unit.Parse(borderWidthList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeFont(sender As Object,
 e As System.EventArgs)
                primaryStyle.Font.Name = _
                    fontNameList.SelectedItem.Text
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub

            Sub ChangeFontSize(sender As Object,
 e As System.EventArgs)
                primaryStyle.Font.Size = _
                    FontUnit.Parse(fontSizeList.SelectedItem.Text)
                Label1.ApplyStyle(primaryStyle)
                ListBox1.ApplyStyle(primaryStyle)
                Button1.ApplyStyle(primaryStyle)
                Table1.ApplyStyle(primaryStyle)
                TextBox1.ApplyStyle(primaryStyle)
            End Sub
        </script>
    </head>

    <body>
        <form id="Form1" runat="server">
            <table cellPadding="6" border="0">
                <tr>
                    <td>
                        <asp:label id="Label1"
 
                            Text="Border Properties Example"
 Runat="server">
                            <center><br>Label Styles</center>
                        </asp:label>
                    </td>
                    <td>
                        <asp:button id="Button1"
 runat="server" 
                            Text="Button Styles">
                        </asp:button>
                    </td>
                    <td>
                        <asp:listbox id="ListBox1"
 Runat="server">
                            <asp:ListItem Value="0"
 Text="List Item 0">
                            </asp:ListItem>
                            <asp:ListItem Value="1"
 Text="List Item 1">
                            </asp:ListItem>
                            <asp:ListItem Value="2"
 Text="List Item 2">
                            </asp:ListItem>
                        </asp:listbox>
                    </td>
                    <td>
                        <asp:textbox id="TextBox1"
 
                            Text="TextBox Styles"
 Runat="server">
                        </asp:textbox>
                    </td>
                    <td>
                        <asp:table id="Table1"
 Runat="server">
                            <asp:TableRow>
                                <asp:TableCell Text="(0,0)"></asp:TableCell>
                                <asp:TableCell Text="(0,1)"></asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell Text="(1,0)"></asp:TableCell>
                                <asp:TableCell Text="(1,1)"></asp:TableCell>
                            </asp:TableRow>
                        </asp:table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label Runat="server"
 Text="Border Color:">
                        </asp:Label>
                        <asp:dropdownlist id="borderColorList"
 
                            Runat="server" AutoPostBack="True"
 
                            OnSelectedIndexChanged="ChangeBorderColor">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server"
 Text="Border Style:">
                        </asp:Label>
                        <asp:dropdownlist id="borderStyleList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBorderStyle">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server"
 Text="Border Width">
                        </asp:Label>
                        <asp:dropdownlist id="borderWidthList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBorderWidth">
                        </asp:dropdownlist>
                    </td>
                    <td>
                        <asp:Label Runat="server"
 Text="Back Color:">
                        </asp:Label>
                        <asp:dropdownlist id="backColorList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBackColor">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server"
 Text="Foreground Color:">
                        </asp:Label>
                        <asp:dropdownlist id="foreColorList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeForeColor">
                        </asp:dropdownlist>
                    </td>
                    <td>
                        <asp:Label Runat="server"
 Text="Font Name:">
                        </asp:Label>
                        <asp:dropdownlist id="fontNameList"
 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeFont">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server"
 Text="Font Size:">
                        </asp:Label>
                        <asp:dropdownlist id="fontSizeList"
 
                            Runat="server" AutoPostBack="True"
 
                            OnSelectedIndexChanged="ChangeFontSize">
                        </asp:dropdownlist>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
<%@ Page language="C#" AutoEventWireup="true"
 %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Data" %>

<html>
    <head>
        <script runat="server">

            private Style primaryStyle = new
 Style();

            void Page_Load(object sender, System.EventArgs e)
            {
                if (!Page.IsPostBack)
                {
                    // Add data to the borderColorList, 
                    // backColorList, and foreColorList controls.
                    ListItemCollection colors = new ListItemCollection();
                    colors.Add(Color.Black.Name);
                    colors.Add(Color.Blue.Name);
                    colors.Add(Color.Green.Name);
                    colors.Add(Color.Orange.Name);
                    colors.Add(Color.Purple.Name);
                    colors.Add(Color.Red.Name);
                    colors.Add(Color.White.Name);
                    colors.Add(Color.Yellow.Name);
                    borderColorList.DataSource = colors;
                    borderColorList.DataBind();         
                    backColorList.DataSource = colors;
                    backColorList.DataBind();
                    foreColorList.DataSource = colors;
                    foreColorList.DataBind();

                    // Add data to the borderStyleList control.
                    ListItemCollection styles = new ListItemCollection();
                    Type styleType = typeof(BorderStyle);
                    foreach (string s in
 Enum.GetNames(styleType))
                    {
                        styles.Add(s);
                    }
                    borderStyleList.DataSource = styles;
                    borderStyleList.DataBind();  

                    // Add data to the borderWidthList control.
                    ListItemCollection widths = new ListItemCollection();
                    for (int i = 0; i <
 11; i++)
                    {
                        widths.Add(i.ToString() + "px");
                    }
                    borderWidthList.DataSource = widths;
                    borderWidthList.DataBind();

                    // Add data to the fontNameList control.
                    ListItemCollection names = new ListItemCollection();
                    names.Add("Arial");
                    names.Add("Courier");
                    names.Add("Garamond");
                    names.Add("Time New Roman");
                    names.Add("Verdana");
                    fontNameList.DataSource = names;
                    fontNameList.DataBind();

                    // Add data to the fontSizeList control.
                    ListItemCollection fontSizes = new ListItemCollection();
                    fontSizes.Add("Small");
                    fontSizes.Add("Medium");
                    fontSizes.Add("Large");
                    fontSizes.Add("10pt");
                    fontSizes.Add("14pt");
                    fontSizes.Add("20pt");
                    fontSizeList.DataSource = fontSizes;
                    fontSizeList.DataBind();
                    
                    //Set primaryStyle as the style for each control.
                    Label1.ApplyStyle(primaryStyle);
                    ListBox1.ApplyStyle(primaryStyle);
                    Button1.ApplyStyle(primaryStyle);
                    Table1.ApplyStyle(primaryStyle);
                    TextBox1.ApplyStyle(primaryStyle);
                }
            }
            void ChangeBorderColor(object sender, System.EventArgs
 e)
            {
                primaryStyle.BorderColor = 
                    Color.FromName(borderColorList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }
    
            void ChangeBackColor(object sender, System.EventArgs
 e)
            {
                primaryStyle.BackColor = 
                    Color.FromName(backColorList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeForeColor(object sender, System.EventArgs
 e)
            {
                primaryStyle.ForeColor = 
                    Color.FromName(foreColorList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeBorderStyle(object sender, System.EventArgs
 e)
            {
                primaryStyle.BorderStyle = 
                    (BorderStyle)Enum.Parse(typeof(BorderStyle), 
                    borderStyleList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeBorderWidth(object sender, System.EventArgs
 e)
            {
                primaryStyle.BorderWidth = 
                    Unit.Parse(borderWidthList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeFont(object sender, System.EventArgs e)
            {
                primaryStyle.Font.Name = 
                    fontNameList.SelectedItem.Text;
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }

            void ChangeFontSize(object sender, System.EventArgs
 e)
            {
                primaryStyle.Font.Size = 
                    FontUnit.Parse(fontSizeList.SelectedItem.Text);
                Label1.ApplyStyle(primaryStyle);
                ListBox1.ApplyStyle(primaryStyle);
                Button1.ApplyStyle(primaryStyle);
                Table1.ApplyStyle(primaryStyle);
                TextBox1.ApplyStyle(primaryStyle);
            }
        </script>
    </head>

    <body>
        <form id="Form1" runat="server">
            <table cellPadding="6" border="0">
                <tr>
                    <td>
                        <asp:label id="Label1" 
                            Text="Border Properties Example" Runat="server">
                            <center><br>Label Styles</center>
                        </asp:label>
                    </td>
                    <td>
                        <asp:button id="Button1" runat="server"
 
                            Text="Button Styles">
                        </asp:button>
                    </td>
                    <td>
                        <asp:listbox id="ListBox1" Runat="server">
                            <asp:ListItem Value="0" Text="List
 Item 0">
                            </asp:ListItem>
                            <asp:ListItem Value="1" Text="List
 Item 1">
                            </asp:ListItem>
                            <asp:ListItem Value="2" Text="List
 Item 2">
                            </asp:ListItem>
                        </asp:listbox>
                    </td>
                    <td>
                        <asp:textbox id="TextBox1" 
                            Text="TextBox Styles" Runat="server">
                        </asp:textbox>
                    </td>
                    <td>
                        <asp:table id="Table1" Runat="server">
                            <asp:TableRow>
                                <asp:TableCell Text="(0,0)"></asp:TableCell>
                                <asp:TableCell Text="(0,1)"></asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell Text="(1,0)"></asp:TableCell>
                                <asp:TableCell Text="(1,1)"></asp:TableCell>
                            </asp:TableRow>
                        </asp:table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label Runat="server" Text="Border
 Color:">
                        </asp:Label>
                        <asp:dropdownlist id="borderColorList" 
                            Runat="server" AutoPostBack="True"
 
                            OnSelectedIndexChanged="ChangeBorderColor">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server" Text="Border
 Style:">
                        </asp:Label>
                        <asp:dropdownlist id="borderStyleList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBorderStyle">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server" Text="Border
 Width">
                        </asp:Label>
                        <asp:dropdownlist id="borderWidthList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBorderWidth">
                        </asp:dropdownlist>
                    </td>
                    <td>
                        <asp:Label Runat="server" Text="Back Color:">
                        </asp:Label>
                        <asp:dropdownlist id="backColorList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeBackColor">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server" Text="Foreground
 Color:">
                        </asp:Label>
                        <asp:dropdownlist id="foreColorList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeForeColor">
                        </asp:dropdownlist>
                    </td>
                    <td>
                        <asp:Label Runat="server" Text="Font Name:">
                        </asp:Label>
                        <asp:dropdownlist id="fontNameList" 
                            Runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ChangeFont">
                        </asp:dropdownlist>
                        <br>
                        <asp:Label Runat="server" Text="Font Size:">
                        </asp:Label>
                        <asp:dropdownlist id="fontSizeList" 
                            Runat="server" AutoPostBack="True"
 
                            OnSelectedIndexChanged="ChangeFontSize">
                        </asp:dropdownlist>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Style コンストラクタ (StateBag)

指定した状態バッグ情報を使用して、Style クラスの新しいインスタンスを初期化します。

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Sub New ( _
    bag As StateBag _
)
Dim bag As StateBag

Dim instance As New Style(bag)
public Style (
    StateBag bag
)
public:
Style (
    StateBag^ bag
)
public Style (
    StateBag bag
)
public function Style (
    bag : StateBag
)

パラメータ

bag

スタイル情報の格納先の状態バッグを表す System.Web.UI.StateBag。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Style コンストラクタ


Style コンストラクタ


Style フィールド


パブリック フィールドパブリック フィールド

  名前 説明
パブリック フィールド AlignmentKey Style の Alignment 設定を取得するためのキーを表します。
パブリック フィールド BackColorKey BackColor プロパティに使用するスタイルを組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド BoldKey 組み込みスタイル シートから、Font の Bold プロパティを設定するためのスタイルを取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド FontNameKey Font プロパティの Name プロパティに使用するスタイルを、組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド FontSizeKey Font プロパティの Size プロパティに使用するスタイルを、組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド ForeColorKey ForeColor プロパティに使用するスタイルを組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド ItalicKey Font プロパティの Italic プロパティに使用するスタイルを、組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド WrappingKey Wrapping に使用するスタイルを組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
参照参照

関連項目

Style クラス
System.Web.UI.MobileControls 名前空間
Name

その他の技術情報

StyleSheet コントロールの概要

Style プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ Alignment スタイルとして適用する配置を取得または設定します。既定値は Alignment.NotSet です。
パブリック プロパティ BackColor スタイルとして適用する背景色を取得または設定します。既定値は Color.Empty です。
パブリック プロパティ Control 関連するコントロールへの、厳密に型指定された参照を返します。
パブリック プロパティ DeviceSpecific コントロールに関連付ける DeviceSpecific の Choice コンストラクトを取得または設定します。該当するコンストラクトが存在しない場合、アクセサは null 参照 (Visual Basic では Nothing) を返します。
パブリック プロパティ Font コントロールのフォント情報を格納している FontInfo オブジェクトを返します。
パブリック プロパティ ForeColor スタイルとして適用する前景色を取得または設定します。このプロパティは、通常、テキストの色を設定します。既定値は Empty です。
パブリック プロパティ IsTemplated Style オブジェクトにアクティブ テンプレート セットがあるかどうかを示す値を取得します。
パブリック プロパティ Item オーバーロードされます。 継承の使用、不使用にかかわらず、key パラメータを通じてスタイルを返します。
パブリック プロパティ Name 指定したオブジェクトの名前を取得または設定します。既定値は空の文字列 ("") です。
パブリック プロパティ StyleReference Style のスタイル プロパティへの参照を取得または設定します。
パブリック プロパティ Wrapping スタイルとして適用する折り返しモードを取得または設定します。既定値は NotSet です。
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ IsTrackingViewState Style オブジェクトがビューステートへの変更を保存しているかどうかを示す値を取得します。
プロテクト プロパティ State StateBag の現在の内容を取得します。
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Web.UI.IStateManager.IsTrackingViewState このメンバの説明については、IStateManager.IsTrackingViewState のトピックを参照してください。
参照参照

関連項目

Style クラス
System.Web.UI.MobileControls 名前空間
Name

その他の技術情報

StyleSheet コントロールの概要

Style プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ BackColor Web サーバー コントロールの背景色を取得または設定します。
パブリック プロパティ BorderColor Web サーバー コントロールの境界線の色を取得または設定します。
パブリック プロパティ BorderStyle Web サーバー コントロールの境界線スタイルを取得または設定します。
パブリック プロパティ BorderWidth Web サーバー コントロールの境界線の幅を取得または設定します。
パブリック プロパティ Container  Component を格納している IContainer を取得します。 ( Component から継承されます。)
パブリック プロパティ CssClass クライアントで Web サーバー コントロールによって表示されるカスケード スタイル シート (CSS: Cascading Style Sheet) クラスを取得または設定します。
パブリック プロパティ Font Web サーバー コントロールに関連付けられたフォント プロパティを取得します。
パブリック プロパティ ForeColor Web サーバー コントロールの前景色 (通常はテキストの色) を取得または設定します。
パブリック プロパティ Height Web サーバー コントロールの高さを取得または設定します。
パブリック プロパティ IsEmpty 保護されているプロパティ。スタイル要素が状態バッグで定義されているかどうかを示す値を取得します。
パブリック プロパティ RegisteredCssClass コントロールに登録されているカスケード スタイル シート (CSS) を取得します。
パブリック プロパティ Site  Component の ISite を取得または設定します。 ( Component から継承されます。)
パブリック プロパティ Width Web サーバー コントロールの幅を取得または設定します。
プロテクト プロパティプロテクト プロパティ
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Web.UI.IStateManager.IsTrackingViewState このメンバの説明については、IStateManager.IsTrackingViewState のトピックを参照してください。
参照参照

関連項目

Style クラス
System.Web.UI.WebControls 名前空間
BackColor
ForeColor
BorderWidth
BorderStyle
BorderColor
Height
Width

その他の技術情報

ASP.NET のテーマとスキンの概要
ASP.NET Web サーバー コントロールと CSS スタイル
ASP.NET Web サーバー コントロールとブラウザの機能

Style メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Web.UI.IParserAccessor.AddParsedSubObject このメンバの説明については、「IParserAccessor.AddParsedSubObject」を参照してください。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.LoadViewState このメンバの説明については、「IStateManager.LoadViewState」を参照してください。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.SaveViewState このメンバの説明については、「IStateManager.SaveViewState」を参照してください。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.TrackViewState このメンバの説明については、「IStateManager.TrackViewState」を参照してください。
参照参照

関連項目

Style クラス
System.Web.UI.MobileControls 名前空間
Name

その他の技術情報

StyleSheet コントロールの概要

Style メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AddAttributesToRender オーバーロードされます。 指定した System.Web.UI.HtmlTextWriter に表示する必要のある HTML 属性およびスタイルを追加します。このメソッドは、主にコントロールの開発者によって使用されます。
パブリック メソッド CopyFrom 指定した Style のスタイル プロパティをこのメソッドの呼び出し元である Style クラスのインスタンスに複製します。
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 ( Component から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド GetStyleAttributes 指定された System.Web.UI.IUrlResolutionService 実装オブジェクトの System.Web.UI.CssStyleCollection オブジェクトを取得します。
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド MergeWith 指定した Style のスタイル プロパティをこのメソッドの呼び出し元である Style クラスのインスタンスに結合します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド Reset 定義されたスタイル要素を状態バッグから削除します。
パブリック メソッド SetDirty Style にマークを付けて、その状態がビューステートに記録されるようにします。
パブリック メソッド ToString  Component の名前を格納している String を返します (存在する場合)。このメソッドはオーバーライドできません。 ( Component から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 ( Component から継承されます。)
プロテクト メソッド FillStyleAttributes 指定されたオブジェクトのスタイル プロパティを System.Web.UI.CssStyleCollection オブジェクトに追加します。
プロテクト メソッド Finalize  Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 ( Component から継承されます。)
プロテクト メソッド GetService  Component またはその Container で提供されるサービスを表すオブジェクトを返します。 ( Component から継承されます。)
プロテクト メソッド LoadViewState 以前に保存した状態を読み込みます。
プロテクト メソッド MemberwiseClone  オーバーロードされます。 ( MarshalByRefObject から継承されます。)
プロテクト メソッド SaveViewState 保護されているメソッド。TrackViewState メソッドの呼び出し後に変更された状態をすべて保存します。
プロテクト メソッド SetBit 保護されている内部メソッド。状態バッグに格納されているスタイル プロパティを示す内部ビットマスク フィールドを設定します。
プロテクト メソッド TrackViewState 保護されているメソッド。状態変化の追跡の開始位置をコントロールにマークします。"マーク" の後で加えられた変更はすべて追跡され、コントロールのビューステートの一部として保存されます。
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Web.UI.IStateManager.LoadViewState 以前に保存した状態を読み込みます。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.SaveViewState 状態の変化を示すオブジェクトを返します。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.TrackViewState 状態変化の追跡を開始します。
参照参照

関連項目

Style クラス
System.Web.UI.WebControls 名前空間
BackColor
ForeColor
BorderWidth
BorderStyle
BorderColor
Height
Width

その他の技術情報

ASP.NET のテーマとスキンの概要
ASP.NET Web サーバー コントロールと CSS スタイル
ASP.NET Web サーバー コントロールとブラウザの機能

Style メンバ

ASP.NET モバイル コントロールのスタイル特性を 1 つのオブジェクトに整理します。

Style データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
パブリック フィールドパブリック フィールド
  名前 説明
パブリック フィールド AlignmentKey Style の Alignment 設定を取得するためのキーを表します。
パブリック フィールド BackColorKey BackColor プロパティに使用するスタイルを組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド BoldKey 組み込みスタイル シートから、Font の Bold プロパティを設定するためのスタイルを取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド FontNameKey Font プロパティの Name プロパティに使用するスタイルを、組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド FontSizeKey Font プロパティの Size プロパティに使用するスタイルを、組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド ForeColorKey ForeColor プロパティに使用するスタイルを組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド ItalicKey Font プロパティの Italic プロパティに使用するスタイルを、組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック フィールド WrappingKey Wrapping に使用するスタイルを組み込みスタイル シートから取得するためのキー。ASP.NET によって内部的に使用されます。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ Alignment スタイルとして適用する配置を取得または設定します。既定値は Alignment.NotSet です。
パブリック プロパティ BackColor スタイルとして適用する背景色を取得または設定します。既定値は Color.Empty です。
パブリック プロパティ Control 関連するコントロールへの、厳密に型指定された参照を返します。
パブリック プロパティ DeviceSpecific コントロールに関連付ける DeviceSpecific の Choice コンストラクトを取得または設定します。該当するコンストラクトが存在しない場合、アクセサは null 参照 (Visual Basic では Nothing) を返します。
パブリック プロパティ Font コントロールのフォント情報を格納している FontInfo オブジェクトを返します。
パブリック プロパティ ForeColor スタイルとして適用する前景色を取得または設定します。このプロパティは、通常、テキストの色を設定します。既定値は Empty です。
パブリック プロパティ IsTemplated Style オブジェクトにアクティブ テンプレート セットがあるかどうかを示す値を取得します。
パブリック プロパティ Item オーバーロードされます。 継承の使用、不使用にかかわらず、key パラメータを通じてスタイルを返します。
パブリック プロパティ Name 指定したオブジェクトの名前を取得または設定します。既定値は空の文字列 ("") です。
パブリック プロパティ StyleReference Style のスタイル プロパティへの参照を取得または設定します。
パブリック プロパティ Wrapping スタイルとして適用する折り返しモードを取得または設定します。既定値は NotSet です。
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ IsTrackingViewState Style オブジェクトがビューステートへの変更を保存しているかどうかを示す値を取得します。
プロテクト プロパティ State StateBag の現在の内容を取得します。
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Web.UI.IParserAccessor.AddParsedSubObject このメンバの説明については、「IParserAccessor.AddParsedSubObject」を参照してください。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.LoadViewState このメンバの説明については、「IStateManager.LoadViewState」を参照してください。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.SaveViewState このメンバの説明については、「IStateManager.SaveViewState」を参照してください。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.TrackViewState このメンバの説明については、「IStateManager.TrackViewState」を参照してください。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.IsTrackingViewState このメンバの説明については、IStateManager.IsTrackingViewState のトピックを参照してください。
参照参照

関連項目

Style クラス
System.Web.UI.MobileControls 名前空間
Name

その他の技術情報

StyleSheet コントロールの概要

Style メンバ

Web サーバー コントロールのスタイルを表します。

Style データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ BackColor Web サーバー コントロールの背景色を取得または設定します。
パブリック プロパティ BorderColor Web サーバー コントロールの境界線の色を取得または設定します。
パブリック プロパティ BorderStyle Web サーバー コントロールの境界線スタイルを取得または設定します。
パブリック プロパティ BorderWidth Web サーバー コントロールの境界線の幅を取得または設定します。
パブリック プロパティ Container  Component を格納している IContainer を取得します。(Component から継承されます。)
パブリック プロパティ CssClass クライアントで Web サーバー コントロールによって表示されるカスケード スタイル シート (CSS: Cascading Style Sheet) クラスを取得または設定します。
パブリック プロパティ Font Web サーバー コントロールに関連付けられたフォント プロパティを取得します。
パブリック プロパティ ForeColor Web サーバー コントロールの前景色 (通常はテキストの色) を取得または設定します。
パブリック プロパティ Height Web サーバー コントロールの高さを取得または設定します。
パブリック プロパティ IsEmpty 保護されているプロパティ。スタイル要素が状態バッグで定義されているかどうかを示す値を取得します。
パブリック プロパティ RegisteredCssClass コントロールに登録されているカスケード スタイル シート (CSS) を取得します。
パブリック プロパティ Site  Component の ISite を取得または設定します。(Component から継承されます。)
パブリック プロパティ Width Web サーバー コントロールの幅を取得または設定します。
プロテクト プロパティプロテクト プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AddAttributesToRender オーバーロードされます。 指定した System.Web.UI.HtmlTextWriter に表示する必要のある HTML 属性およびスタイルを追加します。このメソッドは、主にコントロールの開発者によって使用されます。
パブリック メソッド CopyFrom 指定した Style のスタイル プロパティをこのメソッドの呼び出し元である Style クラスのインスタンスに複製します。
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 (MarshalByRefObject から継承されます。)
パブリック メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 (Component から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド GetStyleAttributes 指定された System.Web.UI.IUrlResolutionService 実装オブジェクトの System.Web.UI.CssStyleCollection オブジェクトを取得します。
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド MergeWith 指定した Style のスタイル プロパティをこのメソッドの呼び出し元である Style クラスのインスタンスに結合します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド Reset 定義されたスタイル要素を状態バッグから削除します。
パブリック メソッド SetDirty Style にマークを付けて、その状態がビューステートに記録されるようにします。
パブリック メソッド ToString  Component の名前を格納している String を返します (存在する場合)。このメソッドはオーバーライドできません。 (Component から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 (Component から継承されます。)
プロテクト メソッド FillStyleAttributes 指定されたオブジェクトのスタイル プロパティを System.Web.UI.CssStyleCollection オブジェクトに追加します。
プロテクト メソッド Finalize  Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 (Component から継承されます。)
プロテクト メソッド GetService  Component またはその Container で提供されるサービスを表すオブジェクトを返します。 (Component から継承されます。)
プロテクト メソッド LoadViewState 以前に保存した状態を読み込みます。
プロテクト メソッド MemberwiseClone  オーバーロードされます。 ( MarshalByRefObject から継承されます。)
プロテクト メソッド SaveViewState 保護されているメソッド。TrackViewState メソッドの呼び出し後に変更された状態をすべて保存します。
プロテクト メソッド SetBit 保護されている内部メソッド。状態バッグに格納されているスタイル プロパティを示す内部ビットマスク フィールドを設定します。
プロテクト メソッド TrackViewState 保護されているメソッド。状態変化の追跡の開始位置をコントロールにマークします。"マーク" の後で加えられた変更はすべて追跡され、コントロールのビューステートの一部として保存されます。
パブリック イベントパブリック イベント
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Web.UI.IStateManager.LoadViewState 以前に保存した状態を読み込みます。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.SaveViewState 状態の変化を示すオブジェクトを返します。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.TrackViewState 状態変化の追跡を開始します。
インターフェイスの明示的な実装 System.Web.UI.IStateManager.IsTrackingViewState このメンバの説明については、IStateManager.IsTrackingViewState のトピックを参照してください。
参照参照

関連項目

Style クラス
System.Web.UI.WebControls 名前空間
BackColor
ForeColor
BorderWidth
BorderStyle
BorderColor
Height
Width

その他の技術情報

ASP.NET のテーマとスキンの概要
ASP.NET Web サーバー コントロールと CSS スタイル
ASP.NET Web サーバー コントロールとブラウザの機能

花柱

英訳・(英)同義/類義語:Style

被子植物の組織で、めしべの柱頭と子房の間の部分。
「生物学用語辞典」の他の用語
個体の器官や組織など:  花器官  花序  花弁  花柱  花粉4分子  花粉  花粉嚢

Style

名前 スタイル

Style.

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2026/07/01 08:53 UTC 版)

「Style.」
西野カナ の シングル
初出アルバム『LOVE one.』
B面 Stamp
September 1st
リリース
規格 マキシシングル
ジャンル J-POP
ポップ
アニメソング
時間
レーベル SME Records
作詞 西野カナ
作曲 前田和彦
プロデュース 西野カナ
チャート最高順位
西野カナ シングル 年表
glowly days
(2008年)
Style.
(2008年)
MAKE UP
(2009年)
ミュージックビデオ
Style. (short ver.) - YouTube
テンプレートを表示

「Style.」(スタイル)は、日本の歌手・西野カナの3作目のシングル。

概要

収録曲

全作詞: Kana Nishino。
# タイトル 作詞 作曲 編曲 コーラスアレンジ 時間
1. 「Style.」 Kana Nishino Kazuhiko.M Kazuhiko.M SiZK from ★STAR GUiTAR
2. 「Stamp」 Kana Nishino Marimo Wamoto Tomoshige Gonda  
3. 「September 1st」 Kana Nishino Nao Tanaka Nao Tanaka  
合計時間:

解説

  1. Style.
  2. Stamp
  3. September 1st

参加ミュージシャン

サポートミュージシャン

タイアップ

収録アルバム

脚注

注釈

出典

外部リンク


style!

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2026/02/20 14:58 UTC 版)

style!
ジャンル ワイド番組
放送方式 生放送
放送期間 2013年4月1日 -
放送時間 月曜 - 木曜 7:30 - 11:00
放送局 エフエム滋賀 (e-radio)
パーソナリティ
出演 MC MORIYA(月曜 - 木曜)
公式サイト 公式サイト
特記事項:
  • 放送時間は2025年4月以降のデータ。
  • パーソナリティは2018年4月以降のメンバー。
テンプレートを表示

『style!』(スタイル)は、2013年4月1日からエフエム滋賀 (e-radio) で放送されているラジオ番組。

概要

『Happy!』に替わってスタートした平日午前のワイド番組で、2025年4月からは毎週月曜 - 木曜 7:30 - 11:00(日本標準時)に放送されている。

7時35分と9時00分には、毎回滋賀県内にある鉄道各線の駅前からの中継企画を実施する[1]。ただし大雪などで駅前からの中継が困難な日には、リポーターの自宅からの中継企画になる場合がある[2]。

2018年3月までは月曜 - 金曜の週5日間かつ昼の13時まで放送の長時間生ワイド番組であったが、同年4月の改編で月曜 - 木曜の放送に縮小。金曜午前のパートを『life』(金曜 7:30 - 11:00)と題して独立させ、金曜の残りの時間帯を午後の新番組『chai』(金曜 11:30 - 14:55)に割り当てた。

さらに2025年4月の改編で放送時間を11時までとし、11時30分以降の時間帯を『Otona no Radio Alexandria』(制作:JFNC)の部分ネット枠に転換した。また、本番組内で11時台に放送されていた『ディア・フレンズ』(制作:TOKYO FM)は、以後は単独番組として放送されている。

出演者

パーソナリティ

コーナー出演者

  • MC MORIYA - 『MC MORIYAの駅前リポート』を担当[1]。月曜・木曜の担当を経て[5]、2018年からは毎日出演している[6]。

過去のパーソナリティ

  • キダユカ(2013年4月 - 2017年3月) - 『Happy!』からの継続出演者で、本番組でも月曜・火曜を担当[4]。
  • 井上麻子(2013年4月 - 2018年3月) - 『Happy!』からの継続出演者で、本番組でも金曜を担当[4]。
  • 大西結(2017年4月 - 2018年3月) - 月曜・火曜を担当[7]。

タイムテーブル

2025年4月以降のタイムテーブルを記載。

7時台

  • 7:35 - MC MORIYAの駅前リポート
  • 7:36 - 交通情報
  • 7:38 - 天気予報
  • 7:55 - 交通情報
  • 7:57 - 天気予報

8時台

9時台

  • 9:00 - MC MORIYAの駅前リポート
  • 9:15 - HA!HA!HA!の話(第3木曜)
  • 9:30 - ジンケンダーラジオ(火曜)、すまいル・リフォーム・JJF(第1・3火曜)
  • 9:31 - 教えて!弁護士さん(第3月曜)、事業承継のはなしをしませんか?(第4月曜)、アラシガ5分で快眠プロジェクト(第1・2・3木曜)
  • 9:46 - 天気予報
  • 9:48 - 交通情報

10時台

  • 10:03 - 交通安全ワンポイントアドバイス
  • 10:08 - 快適生活ラジオショッピング
  • 10:15 - ギワちゃんのダイハッスル(火曜)
  • 10:53 - レコメンド滋賀

脚注

  1. ^ a b “MC MORIYAの駅前リポート!”. エフエム滋賀. 2026年2月15日閲覧。
  2. ^ e-radio エフエム滋賀 [@eradio_official]「2026年1月22日の投稿」2026年1月22日。X(旧Twitter)より2026年2月15日閲覧。
  3. ^ “林 智美”. エフエム滋賀. 2018年5月8日時点のオリジナルよりアーカイブ。2026年2月15日閲覧。
  4. ^ a b c “番組一覧”. エフエム滋賀. 2013年3月29日時点のオリジナルよりアーカイブ。2026年2月15日閲覧。
  5. ^ “MC MORIYA”. エフエム滋賀. 2018年5月8日時点のオリジナルよりアーカイブ。2026年2月15日閲覧。
  6. ^ “MC MORIYA”. エフエム滋賀. 2018年9月8日時点のオリジナルよりアーカイブ。2026年2月15日閲覧。
  7. ^ “番組一覧”. エフエム滋賀. 2017年4月12日時点のオリジナルよりアーカイブ。2026年2月15日閲覧。

外部リンク

e-radio 月曜 - 木曜 7:30 - 11:00(2013年4月1日 - )
前番組 番組名 次番組
Happy!(7:30 - 12:55)
style!
-
e-radio 月曜 - 木曜 11:30 - 12:55 → 11:30 - 13:00(2013年4月1日 - 2025年3月31日)
Happy!(7:30 - 12:55)
style!
  • ※ここまでe-radio自社制作ワイド番組
Otona no Radio Alexandria(11:30 - 12:55)
  • ※これよりJFNC制作ワイド番組ネット
e-radio 金曜 7:30 - 11:00(2013年4月5日 - 2018年3月30日)
Happy!(7:30 - 12:55)
style!
e-radio 金曜 11:30 - 13:00(2013年4月5日 - 2018年3月30日)
Happy!(7:30 - 12:55)
style!
chai(11:30 - 14:53)

スタイル

(STYLE から転送)

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2026/03/02 02:43 UTC 版)

スタイル(英語:Style)は、日本語では文体、様式、流儀、流派、体型、型、種類、流行、品位、芸風などの意味を持つ。

意味

音楽

アルバム

楽曲

テレビドラマ

その他

関連項目


STYLE (#11)

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2022/06/10 16:50 UTC 版)

「三宅裕司のいかすバンド天国に出場したバンド」の記事における「STYLE (#11)」の解説

男女混合バンド。楽曲は「SHADOW LOVER」。

※この「STYLE (#11)」の解説は、「三宅裕司のいかすバンド天国に出場したバンド」の解説の一部です。
「STYLE (#11)」を含む「三宅裕司のいかすバンド天国に出場したバンド」の記事については、「三宅裕司のいかすバンド天国に出場したバンド」の概要を参照ください。

ウィキペディア小見出し辞書の「STYLE」の項目はプログラムで機械的に意味や本文を生成しているため、不適切な項目が含まれていることもあります。ご了承くださいませ。 お問い合わせ。



固有名詞の分類


英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

「STYLE」に関係したコラム

辞書ショートカット

すべての辞書の索引

「STYLE」の関連用語

STYLEのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



STYLEのページの著作権

   
実用日本語表現辞典実用日本語表現辞典
Copyright © 2026実用日本語表現辞典 All Rights Reserved.
デジタル大辞泉デジタル大辞泉
(C)Shogakukan Inc.
株式会社 小学館
WEB for beginnerWEB for beginner
Copyright (C) 2002~2026 banban@scollabo.com
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.
JabionJabion
Copyright (C) 2026 NII,NIG,TUS. All Rights Reserved.
日外アソシエーツ株式会社日外アソシエーツ株式会社
Copyright (C) 1994- Nichigai Associates, Inc., All rights reserved.
ウィキペディアウィキペディア
All text is available under the terms of the GNU Free Documentation License.
この記事は、ウィキペディアのStyle. (改訂履歴)、style! (改訂履歴)、スタイル (改訂履歴)の記事を複製、再配布したものにあたり、GNU Free Documentation Licenseというライセンスの下で提供されています。 Weblio辞書に掲載されているウィキペディアの記事も、全てGNU Free Documentation Licenseの元に提供されております。
ウィキペディアウィキペディア
Text is available under GNU Free Documentation License (GFDL).
Weblio辞書に掲載されている「ウィキペディア小見出し辞書」の記事は、Wikipediaの三宅裕司のいかすバンド天国に出場したバンド (改訂履歴)、ゲームス (改訂履歴)、HTML要素 (改訂履歴)の記事を複製、再配布したものにあたり、GNU Free Documentation Licenseというライセンスの下で提供されています。

©2026 GRAS Group, Inc.RSS