public override List <string> toLines(int index) { List <string> rtn = base.toLines(index); string temp = "Dialogue: "; for (int i = 0; i < Format.Length; i++) { if (i > 0) { temp += ","; } if (Format[i].Trim() == "Start") { temp += this.BeginStr; } else if (Format[i].Trim() == "End") { temp += this.EndStr; } else if (Format[i].Trim() == "Text") { temp += string.Join("\\N", Contents); } else { temp += ReadSubtitles.getPropertyValue(this, Format[i]); } } rtn.Add(temp); return(rtn); }
public Styles clone() { Styles rtn = new Styles(); for (int i = 0; i < Format.Length; i++) { ReadSubtitles.setPropertyValue(rtn, Format[i], ReadSubtitles.getPropertyValue(this, Format[i])); } return(rtn); }
public override string ToString() { string rtn = "Style: "; for (int i = 0; i < Format.Length; i++) { if (i > 0) { rtn += ","; } rtn += ReadSubtitles.getPropertyValue(this, Format[i]); } //rtn += Name; //rtn += "," + Fontname; //rtn += "," + Fontsize; //rtn += "," + PrimaryColour; //rtn += "," + SecondaryColour; //rtn += "," + OutlineColour; //rtn += "," + BackColour; //rtn += "," + Bold; //rtn += "," + Italic; //rtn += "," + Underline; //rtn += "," + StrikeOut; //rtn += "," + ScaleX; //rtn += "," + ScaleY; //rtn += "," + Spacing; //rtn += "," + Angle; //rtn += "," + BorderStyle; //rtn += "," + Outline; //rtn += "," + Shadow; //rtn += "," + Alignment; //rtn += "," + MarginL; //rtn += "," + MarginR; //rtn += "," + MarginV; //rtn += "," + Encoding; return(rtn); }