public IHTMLItem Convert(SubTitleItem subtitleItem, SubtitleConverterParamsV2 subtitleConverterParams) { if (subtitleItem == null) { throw new ArgumentNullException("subtitleItem"); } //Div subtitle = new Div(); var paragraphConverter = new ParagraphConverterV2(); var internalData = paragraphConverter.Convert(subtitleItem, new ParagraphConverterParamsV2 { ResultType = ParagraphConvTargetEnumV2.Paragraph, Settings = subtitleConverterParams.Settings, StartSection = false }); SetClassType(internalData, ElementStylesV2.PoemSubTitle); //subtitle.Add(internalData); //SetClassType(subtitle); //return subtitle; return internalData; }
public IHTMLItem Convert(SubTitleItem subtitleItem, SubtitleConverterParamsV2 subtitleConverterParams) { if (subtitleItem == null) { throw new ArgumentNullException("subtitleItem"); } //Div subtitle = new Div(); var paragraphConverter = new ParagraphConverterV2(); var internalData = paragraphConverter.Convert(subtitleItem, new ParagraphConverterParamsV2 { ResultType = ParagraphConvTargetEnumV2.Paragraph, Settings = subtitleConverterParams.Settings, StartSection = false }); SetClassType(internalData, ElementStylesV2.PoemSubTitle); //subtitle.Add(internalData); //SetClassType(subtitle); //return subtitle; return(internalData); }