public static IPoint GetPoint(IActionInstance instance) { if (instance == null) { return(null); } return(ServiceProvider.Current.Control.GetPoint(instance.Point)); }
protected override ICompiledTextRunInstance CreateTextRunInstance() { ICompiledTextRunInstance compiledTextRunInstance = base.CreateTextRunInstance(); compiledTextRunInstance.MarkupType = MarkupType.HTML; if (this.m_currentHyperlinkText != null) { IActionInstance actionInstance = base.m_IRichTextInstanceCreator.CreateActionInstance(); actionInstance.SetHyperlinkText(this.m_currentHyperlinkText); compiledTextRunInstance.ActionInstance = actionInstance; } return(compiledTextRunInstance); }
private void ParseActionElement(int listLevel) { RevertActionElement(HtmlElement.HtmlElementType.A); if (!m_currentHtmlElement.IsEmptyElement && m_currentHtmlElement.HasAttributes && m_currentHtmlElement.Attributes.TryGetValue("href", out string value)) { IActionInstance actionInstance = m_IRichTextInstanceCreator.CreateActionInstance(); actionInstance.SetHyperlinkText(value); if (actionInstance.HyperlinkText != null) { m_currentStyle = m_currentStyle.CreateChildStyle(HtmlElement.HtmlElementType.A); m_currentStyle.Color = new ReportColor("Blue"); m_currentStyle.TextDecoration = TextDecorations.Underline; m_currentHyperlinkText = value; } } }
private void ParseActionElement(int listLevel) { this.RevertActionElement(HtmlElement.HtmlElementType.A); string text = default(string); if (!this.m_currentHtmlElement.IsEmptyElement && this.m_currentHtmlElement.HasAttributes && this.m_currentHtmlElement.Attributes.TryGetValue("href", out text)) { IActionInstance actionInstance = base.m_IRichTextInstanceCreator.CreateActionInstance(); actionInstance.SetHyperlinkText(text); if (actionInstance.HyperlinkText != null) { base.m_currentStyle = base.m_currentStyle.CreateChildStyle(HtmlElement.HtmlElementType.A); base.m_currentStyle.Color = new ReportColor("Blue"); base.m_currentStyle.TextDecoration = TextDecorations.Underline; this.m_currentHyperlinkText = text; } } }
public static IPoint GetPoint(this IActionInstance inst) { return(ActionInstances.GetPoint(inst)); }
public static int GetAnalogPointState(IActionInstance inst, BlockState blockState = null) { throw new NotImplementedException(); }
public void CommunicateActionTo(IActionReceptor actionReceptor, IActionInstance actionInstance) { throw new NotImplementedException(); }