//単一行からの作成 public static CharacterDocument SingleLine(string content) { CharacterDocument doc = new CharacterDocument(); doc.AddLine(GLine.CreateSimpleGLine(content, TextDecoration.Default)); return(doc); }
//単一行からの作成 public static CharacterDocument SingleLine(string content) { CharacterDocument doc = new CharacterDocument(); //GWordへの分割はしてない、注意 doc.AddLine(CreateSimpleGLine(content)); return(doc); }
public DummySession() { _caption = String.Format("dummy {0}", _count); //_document = CharacterDocument.SingleLine(String.Format("document {0}", _count)); _document = new CharacterDocument(); _document.LoadForTest(@"C:\P4\doc\test\characterdocument.txt"); _count++; _document.SetOwner(this); _icon = null; _document.Caption = _caption; }
public CharacterDocumentViewerContainer(CharacterDocument doc) { _viewer = new CharacterDocumentViewer(); _viewer.SetContent(doc, GEnv.DefaultRenderProfile); _viewer.Dock = DockStyle.Fill; _caretTimer = new System.Windows.Forms.Timer(); _caretTimer.Interval = Win32.GetCaretBlinkTime(); _caretTimer.Tick += new EventHandler(this.OnCaretTimer); _caretTimer.Start(); this.Controls.Add(_viewer); this.Size = new Size(300, 300); }
//�P��s����̍쐬 public static CharacterDocument SingleLine(string content) { CharacterDocument doc = new CharacterDocument(); doc.AddLine(GLine.CreateSimpleGLine(content, TextDecoration.Default)); return doc; }
//派生型であることを強制することなどのためにoverrideすることを許す public virtual void SetContent(CharacterDocument doc) { RenderProfile prof = GetRenderProfile(); this.BackColor = prof.BackColor; _document = doc; this.EnabledEx = doc != null; if (_timer != null) _timer.Close(); if (this.EnabledEx) { _timer = WindowManagerPlugin.Instance.CreateTimer(TIMER_INTERVAL, new TimerDelegate(OnWindowManagerTimer)); _tickCount = 0; } if (_enableAutoScrollBarAdjustment) AdjustScrollBar(); }
public void Attach(DummySession parent, CharacterDocument doc) { _parent = parent; if(!_viewer.IsDisposed) _viewer.SetContent(doc); }