C# Класс SIL.FieldWorks.SharpViews.Paragraphs.StringBox

This class is used for a run of text with the same writing system on a single line. String boxes are created and destroyed quite frequently as (for example) the paragraph layout width changes. Accordingly references to string boxes should not be held. To discourage this, for now StringBox is not a public class. A StringBox wraps an ILgRenderSegment, which does much of the actual rendering etc.
Наследование: LeafBox
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
DrawIp void
DrawRange void
DrawUnderline void
MakeSelectionAt SIL.FieldWorks.SharpViews.Selections.Selection

Открытые методы

Метод Описание
GetIpLocation ( InsertionPoint ip, IVwGraphics vg, PaintTransform ptrans, bool &here ) : Rectangle

Get the IP location, if in this segment; if not return a dummy rectangle and 'here' will be false.

Layout ( LayoutInfo transform ) : void
PaintBackground ( IVwGraphics vg, PaintTransform ptrans ) : void
PaintForeground ( IVwGraphics vg, PaintTransform ptrans ) : void
StringBox ( AssembledStyles styles, ILgSegment segment, int ichMin ) : System

Make one.

ToString ( ) : string

Приватные методы

Метод Описание
DrawIp ( InsertionPoint ip, IVwGraphics vg, PaintTransform ptrans ) : void
DrawRange ( int ichMin, int ichLim, IVwGraphics vg, PaintTransform ptrans, int topOfLine, int bottomOfLine ) : void
DrawUnderline ( IVwGraphics pvg, int xdLeft, int xdRight, int ydTop, int dxScreenPix, int dyScreenPix, int clrUnder, FwUnderlineType unt, int xOffset ) : void

Draw an underline from xdLeft to xdRight at ydTop, given the specified screen resolution, the desired colur and underline type, and (for aligning squiggles) the offset in the destination drawing rectangle.

MakeSelectionAt ( Point where, IVwGraphics vg, PaintTransform ptrans ) : Selection

Описание методов

GetIpLocation() публичный Метод

Get the IP location, if in this segment; if not return a dummy rectangle and 'here' will be false.
public GetIpLocation ( InsertionPoint ip, IVwGraphics vg, PaintTransform ptrans, bool &here ) : Rectangle
ip SIL.FieldWorks.SharpViews.Selections.InsertionPoint
vg IVwGraphics
ptrans PaintTransform
here bool
Результат System.Drawing.Rectangle

Layout() публичный Метод

public Layout ( LayoutInfo transform ) : void
transform LayoutInfo
Результат void

PaintBackground() публичный Метод

public PaintBackground ( IVwGraphics vg, PaintTransform ptrans ) : void
vg IVwGraphics
ptrans PaintTransform
Результат void

PaintForeground() публичный Метод

public PaintForeground ( IVwGraphics vg, PaintTransform ptrans ) : void
vg IVwGraphics
ptrans PaintTransform
Результат void

StringBox() публичный Метод

Make one.
public StringBox ( AssembledStyles styles, ILgSegment segment, int ichMin ) : System
styles AssembledStyles
segment ILgSegment
ichMin int
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string