public string GetAlignStyle(List<string> results, string content)
{
var stringResult = "";
var abc = results.Find(x => x.Contains(content));
if (abc != null)
{
var index = results.FindIndex(x => x.Contains(content));
var styleString = results[index].Split(new string[] {"text-align:"}, StringSplitOptions.None);
if (styleString.Length > 1)
{
stringResult = TruncateLongString(styleString[1].Trim(), 4);
results.RemoveAt(index);
}
}
return stringResult;
}
No comments:
Post a Comment