Class SVGStyleElementBuilder

Class SVGStyleElementBuilder

Το όνομα: Aspose.Svg.Builder Συγκέντρωση: Aspose.SVG.dll (25.5.0)

Μια κλάση κατασκευαστή για την κατασκευή ενός στοιχείου “στυλ” SVG.Αυτή η τάξη διευκολύνει τη δημιουργία και τη διαμόρφωση ενός στοιχείου στυλ SVG με κανόνες CSS.

[ComVisible(true)]
public class SVGStyleElementBuilder : SVGElementBuilder<svgstyleelement>, ISVGElementBuilder, IAttributeSetter, ICoreAttributeSetter, IGlobalEventAttributeSetter, ICommonEventAttributeSetter, IDocumentElementEventAttributeSetter

Inheritance

object SVGElementBuilder SVGStyleElementBuilder

Implements

ISVGElementBuilder , IAttributeSetter , ICoreAttributeSetter , IGlobalEventAttributeSetter , ICommonEventAttributeSetter , IDocumentElementEventAttributeSetter

Κληρονομημένα μέλη

SVGElementBuilder.Create(Document) , SVGElementBuilder.Build(Document) , SVGElementBuilder.Build(SVGStyleElement) , SVGElementBuilder.BuildElement(Document) , SVGElementBuilder.Attribute(string, string) , SVGElementBuilder.Configurations , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Μέθοδοι επέκτασης

SVGBuilderExtensions.AddBuilder<svgstyleelementbuilder, telementbuilder="">(SVGStyleElementBuilder, TElementBuilder) , SVGBuilderExtensions.Class(SVGStyleElementBuilder, params string[]) , SVGBuilderExtensions.Id(SVGStyleElementBuilder, string) , SVGBuilderExtensions.Lang(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnCanPlay(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnCanPlayThrough(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnCancel(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnChange(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnClick(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnClose(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnCopy(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnCueChange(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnCut(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDblClick(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDrag(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDragEnd(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDragEnter(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDragExit(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDragLeave(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDragOver(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDragStart(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDrop(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnDurationChange(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnEmptied(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnEnded(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnError(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnFocus(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnInput(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnInvalid(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnKeyDown(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnKeyPress(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnKeyUp(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnLoad(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnLoadStart(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnLoadedData(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnLoadedMetadata(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnMouseDown(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnMouseEnter(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnMouseLeave(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnMouseMove(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnMouseOut(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnMouseOver(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnMouseUp(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnMouseWheel(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnPaste(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnPause(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnPlay(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnPlaying(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnProgress(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnRateChange(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnReset(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnResize(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnScroll(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnSeeked(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnSeeking(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnSelect(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnShow(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnStalled(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnSubmit(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnSuspend(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnTimeUpdate(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnToggle(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnVolumeChange(SVGStyleElementBuilder, string) , SVGBuilderExtensions.OnWaiting(SVGStyleElementBuilder, string) , SVGBuilderExtensions.SetAttribute(SVGStyleElementBuilder, string, string) , SVGBuilderExtensions.Style(SVGStyleElementBuilder, Action) , SVGBuilderExtensions.Style(SVGStyleElementBuilder, string) , SVGBuilderExtensions.Tabindex(SVGStyleElementBuilder, int) , SVGBuilderExtensions.XmlSpace(SVGStyleElementBuilder, XmlSpace)

Constructors

ΕτικέτεςElementBuilder()

public SVGStyleElementBuilder()

Methods

AddComment(Σύνδεσμος)

Προσθέστε ένα σχόλιο στο περιεχόμενο στυλ.

public SVGStyleElementBuilder AddComment(string comment)

Parameters

comment string

Το κείμενο των σχολίων για να προσθέσετε.

Returns

SVGStyleElementBuilder

Η περίπτωση SVGStyleElementBuilder για την αλυσίδα.

AddRule(Σύνδεσμος, Σύνδεσμος)

Προσθέστε έναν κανόνα CSS στο στοιχείο στυλ.

public SVGStyleElementBuilder AddRule(string selector, string rules)

Parameters

selector string

Η επιλογή CSS για τον κανόνα.

rules string

Οι κανόνες του CSS είναι σαν μια γραμμή.

Returns

SVGStyleElementBuilder

Η περίπτωση SVGStyleElementBuilder για την αλυσίδα.

AddRule(Σύνδεσμος, δράση)

Προσθέστε έναν κανόνα CSS στο στοιχείο στυλ χρησιμοποιώντας ένα RuleBuilder.

public SVGStyleElementBuilder AddRule(string selector, Action<rulebuilder> configureRule)

Parameters

selector string

Η επιλογή CSS για τον κανόνα.

configureRule Action &lt · RuleBuilder >

Ένας αντιπρόσωπος για να ρυθμίσετε τον κανόνα χρησιμοποιώντας ένα RuleBuilder.

Returns

SVGStyleElementBuilder

Η περίπτωση SVGStyleElementBuilder για την αλυσίδα.

Build(Document)

Κατασκευάζει το στοιχείο στυλ SVG με τους συσσωρευμένους κανόνες CSS και το προσθέτει στο καθορισμένο έγγραφο.

public override SVGStyleElement Build(Document document)

Parameters

document Document

Το έγγραφο στο οποίο θα προστεθεί το στοιχείο στυλ.

Returns

SVGStyleElement

Το κατασκευασμένο SVGStyleElement.

Create(Document)

Δημιουργεί ένα νέο στοιχείο στυλ SVG στο συγκεκριμένο έγγραφο.

protected override SVGStyleElement Create(Document document)

Parameters

document Document

Το έγγραφο στο οποίο θα δημιουργηθεί το στοιχείο στυλ.

Returns

SVGStyleElement

Ένα νέο SVGStyleElement.

Media(Σύνδεσμος)

Προσθέτει το «μέσο» χαρακτηριστικό του στοιχείου «στυλ» του SVG.Αυτό το χαρακτηριστικό προσδιορίζει τα μέσα ενημέρωσης για τα οποία προορίζονται οι στυλ, επιτρέποντας στους στίχους να είναι υπό όρους για τον τύπο του μέσου.

public SVGStyleElementBuilder Media(string mediaDescriptors)

Parameters

mediaDescriptors string

Η γραμμή περιγραφής μέσων ενημέρωσης (π.χ., «η οθόνη», «εικόνα»).

Returns

SVGStyleElementBuilder

Η περίπτωση SVGStyleElementBuilder για την αλυσίδα.

Title(Σύνδεσμος)

Καθορίζει το χαρακτηριστικό «κείμενο» του στοιχείου «στυλ» SVG.Αυτό το χαρακτηριστικό παρέχει έναν συμβουλευτικό τίτλο για το στοιχείο στυλ, το οποίο μπορεί να είναι χρήσιμο για την προσβασιμότητα και το εργαλείο-τυπικό κείμενο.

public SVGStyleElementBuilder Title(string advisoryTitle)

Parameters

advisoryTitle string

Το κείμενο του συμβουλευτικού τίτλου.

Returns

SVGStyleElementBuilder

Η περίπτωση SVGStyleElementBuilder για την αλυσίδα.

Type(Σύνδεσμος)

Καθορίζει το χαρακτηριστικό “τύπου” του στοιχείου “στυλ” SVG.Αυτό το χαρακτηριστικό προσδιορίζει τη γλώσσα φύλλου στυλ του περιεχομένου του στοιχείου.

public SVGStyleElementBuilder Type(string contentType)

Parameters

contentType string

Ο τύπος MIME της γλώσσας στυλ (π.χ., «text/css»).

Returns

SVGStyleElementBuilder

Η περίπτωση SVGStyleElementBuilder για την αλυσίδα.</svgstyleelementbuilder,>

 Ελληνικά