2using System.Text.RegularExpressions;
3using System.Threading.Tasks;
23 private string contentType;
36 [
Page(2,
"Script", 100)]
38 [ToolTip(78,
"URL to media.")]
45 if (!Uri.TryCreate(value, UriKind.Absolute, out Uri _))
46 throw new NotSupportedException(
"Invalid URL.");
55 [
Page(2,
"Script", 100)]
56 [Header(63,
"Content-Type:")]
57 [ToolTip(79,
"Content-Type of media.")]
61 get => this.contentType;
64 if (!
string.IsNullOrEmpty(value) && (
68 throw new NotSupportedException(
"Content-Type not supported.");
71 this.contentType = value;
78 [
Page(2,
"Script", 100)]
79 [Header(80,
"Width:")]
80 [ToolTip(81,
"Width of media.")]
81 public ushort?
Width {
get;
set; }
86 [
Page(2,
"Script", 100)]
87 [Header(82,
"Height:")]
88 [ToolTip(83,
"Height of media.")]
117 return Task.CompletedTask;
132 return Task.CompletedTask;
Static class managing encoding and decoding of internet content.
static string[] CanDecodeContentTypes
Internet content types that can be decoded.
static bool IsAccepted(string ContentType, params string[] AcceptedContentTypes)
Checks if a given content type is acceptable.
static string[] CanEncodeContentTypes
Internet content types that can be encoded.
Static class managing editable parameters in objects. Editable parameters are defined by using the at...
Class managing a page in a data form layout.
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Represents a parameter on a command.
string Label
Parameter label.
bool Required
If parameter is required.
string ParameterName
Parameter name.
string Page
Parameter name.