# StyleRule(ロブロックス クラス) > Defines style properties which override properties on the instances affected by the Class.StyleRule.Selector|Selector property. - URL:https://roblox.minecraft-okinawa.com/reference/classes/StyleRule/ - 公式:https://create.roblox.com/docs/reference/engine/classes/StyleRule - 受け継いでいるクラス:StyleBase ## プロパティ - `StyleRule.Priority: int`:A number that determines how properties of the StyleRule apply relative to the same properties in other StyleRules. Higher priority values take precedence over lower. - `StyleRule.Selector: string`:A string specifying which instances the StyleRule should affect. - `StyleRule.SelectorError: string`:A read-only string that displays errors from the Class.StyleRule.Selector|Selector property. ## メソッド - `StyleRule:GetDefaultPropertyTransition(): Variant`:Returns the default transition applied to all properties of the StyleRule that don't have an explicit transition set. - `StyleRule:GetProperties(): Dictionary`:Returns a dictionary of key-value pairs describing the properties of the StyleRule. - `StyleRule:GetProperty(name: string): Variant`:Returns the value of a specific property in the StyleRule. - `StyleRule:GetPropertyTransitions(): Dictionary`:Returns a dictionary of all property transitions set on the StyleRule. - `StyleRule:SetDefaultPropertyTransition(transitionParams: Variant): ()`:Sets or clears a default transition that applies to all properties of the StyleRule that don't have an explicit transition set. - `StyleRule:SetProperties(styleProperties: Dictionary): ()`:Lets you declare and set multiple properties of the StyleRule at once. - `StyleRule:SetProperty(name: string, value: Variant): ()`:Sets or updates a single property of the StyleRule. - `StyleRule:SetPropertyTransition(property: string, transitionParams: Variant): ()`:Sets or clears the transition for a single property on the StyleRule. - `StyleRule:SetPropertyTransitions(properties: Dictionary): ()`:Lets you declare and set transitions for multiple properties of the StyleRule at once. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)