Interface ICSSKeyframesRule

Interface ICSSKeyframesRule

Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML.dll (25.1.0)

อินเทอร์เฟซ CSSKeyframesRule แสดงชุดของ keyframes สำหรับการทำอนิเมชันเดียว

[DOMObject]
[DOMName("CSSKeyframesRule")]
[ComVisible(true)]
public interface ICSSKeyframesRule : ICSSRule

Implements

ICSSRule

Properties

CSSRules

คุณสมบัตินี้ให้การเข้าถึง keyframes ในรายการ

ICSSRuleList CSSRules { get; }

Property Value

ICSSRuleList

Name

คุณสมบัตินี้คือชื่อของ keyframes ที่ใช้โดยคุณสมบัติ ‘animation-name’

string Name { get; }

Property Value

string

Methods

AppendRule(string)

เมธอด appendRule จะเพิ่ม CSSKeyframeRule ที่ส่งเข้ามาในรายการที่คีย์ที่ส่งเข้ามา

void AppendRule(string rule)

Parameters

rule string

กฎที่จะถูกเพิ่ม ซึ่งแสดงในไวยากรณ์เดียวกันกับรายการหนึ่งในกฎ ‘@keyframes’

DeleteRule(string)

เมธอด deleteRule จะลบ CSSKeyframeRule ที่มีคีย์ที่ส่งมา หากกฎที่มีคีย์นี้ไม่มีอยู่ เมธอดจะไม่ทำอะไร

void DeleteRule(string key)

Parameters

key string

คีย์ที่อธิบายกฎที่จะถูกลบ คีย์ต้องแก้ไขเป็นหมายเลขระหว่าง 0 ถึง 1 หรือกฎจะถูกมองข้าม

FindRule(string)

เมธอด findRule จะคืนค่ากฎที่มีคีย์ตรงกับคีย์ที่ส่งมา หากไม่มีรูกฎดังกล่าว จะคืนค่า null

ICSSKeyframeRule FindRule(string key)

Parameters

key string

คีย์ที่อธิบายกฎที่จะค้นหา คีย์ต้องแก้ไขเป็นหมายเลขระหว่าง 0 ถึง 1 หรือกฎจะถูกมองข้าม

Returns

ICSSKeyframeRule

กฎที่พบ

 แบบไทย