We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi everyone. i've tried to use line-height property, but doesn't work. I wonder if property can be used?
Thanks for all!!
UPDATE: I did this for solve my problem.
I added this in Converter.cs
public static SpacingBetweenLines ToSpacingBetweenLines(string html) { if (html == null) return null; SpacingBetweenLines spacingBetweenLines = new SpacingBetweenLines(); spacingBetweenLines.LineRule = LineSpacingRuleValues.Exact; Unit unit = Unit.Parse(html); if (unit.IsValid || unit.Value > 0) spacingBetweenLines.Line = (unit.Value * 20.0).ToString();
//spacingBetweenLines.Before ="0"; //spacingBetweenLines.After = "0"; return spacingBetweenLines; }
Edit 2 ParagraphStyleCollection.cs attrValue = en.StyleAttributes["line-height"]; if (attrValue != null && en.CurrentTag != "") { var spacing = Converter.ToSpacingBetweenLines(attrValue); if (spacing != null) { containerStyleAttributes.Add(spacing); } }
The text was updated successfully, but these errors were encountered:
Support property line-height #52
d5b380e
No branches or pull requests
hi everyone.
i've tried to use line-height property, but doesn't work.
I wonder if property can be used?
Thanks for all!!
UPDATE: I did this for solve my problem.
I added this in Converter.cs
public static SpacingBetweenLines ToSpacingBetweenLines(string html)
{
if (html == null) return null;
SpacingBetweenLines spacingBetweenLines = new SpacingBetweenLines();
spacingBetweenLines.LineRule = LineSpacingRuleValues.Exact;
Unit unit = Unit.Parse(html);
if (unit.IsValid || unit.Value > 0)
spacingBetweenLines.Line = (unit.Value * 20.0).ToString();
Edit 2 ParagraphStyleCollection.cs
attrValue = en.StyleAttributes["line-height"];
if (attrValue != null && en.CurrentTag != "")
{
var spacing = Converter.ToSpacingBetweenLines(attrValue);
if (spacing != null)
{
containerStyleAttributes.Add(spacing);
}
}
The text was updated successfully, but these errors were encountered: