Qyoto  4.0.6
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QTextImageFormat Class Reference

The QTextImageFormat class provides formatting information for images in a QTextDocument. More...

Inheritance diagram for QtGui.QTextImageFormat:
Collaboration diagram for QtGui.QTextImageFormat:

Public Member Functions

 QTextImageFormat ()
 
 
 QTextImageFormat (QTextImageFormat copy)
 
override void CreateProxy ()
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QTextCharFormat
 QTextCharFormat ()
 
 
 QTextCharFormat (QTextCharFormat copy)
 
new void SetAnchor (bool anchor)
 
 
new void SetFontStyleHint (QFont.StyleHint hint, QFont.StyleStrategy strategy=QFont.StyleStrategy.PreferDefault)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QTextFormat
override bool Equals (object o)
 
override int GetHashCode ()
 
 QTextFormat ()
 
 
 QTextFormat (QTextFormat rhs)
 
 
 QTextFormat (int type)
 
 
new bool BoolProperty (int propertyId)
 
 
new QBrush BrushProperty (int propertyId)
 
 
new void ClearBackground ()
 
 
new void ClearForeground ()
 
 
new void ClearProperty (int propertyId)
 
 
new QColor ColorProperty (int propertyId)
 
 
new double DoubleProperty (int propertyId)
 
 
new bool HasProperty (int propertyId)
 
 
new int IntProperty (int propertyId)
 
 
new QTextLength LengthProperty (int propertyId)
 
 
new
System.Collections.Generic.List
< QTextLength
LengthVectorProperty (int propertyId)
 
 
new void Merge (QTextFormat other)
 
 
new QPen PenProperty (int propertyId)
 
 
new object property (int propertyId)
 
 
new void SetProperty (int propertyId, object value)
 
 
new void SetProperty (int propertyId, System.Collections.Generic.List< QTextLength > lengths)
 
 
new string StringProperty (int propertyId)
 
 
new QTextBlockFormat ToBlockFormat ()
 
 
new QTextCharFormat ToCharFormat ()
 
 
new QTextFrameFormat ToFrameFormat ()
 
 
new QTextImageFormat ToImageFormat ()
 
 
new QTextListFormat ToListFormat ()
 
 
new QTextTableCellFormat ToTableCellFormat ()
 
 
new QTextTableFormat ToTableFormat ()
 
 
new void Dispose ()
 

Protected Member Functions

 QTextImageFormat (System.Type dummy)
 
 QTextImageFormat (QTextFormat format)
 
- Protected Member Functions inherited from QtGui.QTextCharFormat
 QTextCharFormat (System.Type dummy)
 
 QTextCharFormat (QTextFormat fmt)
 
- Protected Member Functions inherited from QtGui.QTextFormat
 QTextFormat (System.Type dummy)
 

Properties

double Height [get, set]
 
 
string Name [get, set]
 
 
double Width [get, set]
 
 
bool IsValid [get]
 
 
- Properties inherited from QtGui.QTextCharFormat
string AnchorHref [get, set]
 
 
string AnchorName [get, set]
 
 
System.Collections.Generic.List
< string > 
AnchorNames [get, set]
 
 
QFont Font [get, set]
 
 
QFont.Capitalization FontCapitalization [get, set]
 
 
string FontFamily [get, set]
 
 
bool FontFixedPitch [get, set]
 
 
QFont.HintingPreference FontHintingPreference [get, set]
 
 
bool FontItalic [get, set]
 
 
bool FontKerning [get, set]
 
 
double FontLetterSpacing [get, set]
 
 
bool FontOverline [get, set]
 
 
double FontPointSize [get, set]
 
 
bool FontStrikeOut [get, set]
 
 
QFont.StyleStrategy FontStyleStrategy [get, set]
 
 
bool FontUnderline [get, set]
 
 
int FontWeight [get, set]
 
 
double FontWordSpacing [get, set]
 
 
int TableCellColumnSpan [get, set]
 
int TableCellRowSpan [get, set]
 
QPen TextOutline [get, set]
 
 
string ToolTip [get, set]
 
 
QColor UnderlineColor [get, set]
 
 
QTextCharFormat.UnderlineStyle underlineStyle [get, set]
 
 
QTextCharFormat.VerticalAlignment verticalAlignment [get, set]
 
 
QFont.StyleHint FontStyleHint [get]
 
 
bool IsAnchor [get]
 
 
bool IsValid [get]
 
 
- Properties inherited from QtGui.QTextFormat
QBrush Background [get, set]
 
 
QBrush Foreground [get, set]
 
 
Qt.LayoutDirection LayoutDirection [get, set]
 
 
int ObjectIndex [get, set]
 
 
int ObjectType [get, set]
 
 
bool IsBlockFormat [get]
 
 
bool IsCharFormat [get]
 
 
bool IsFrameFormat [get]
 
 
bool IsImageFormat [get]
 
 
bool IsListFormat [get]
 
 
bool IsTableCellFormat [get]
 
 
bool IsTableFormat [get]
 
 
bool IsValid [get]
 
 
System.Collections.Generic.Dictionary
< System.Int32, System.Object > 
Properties [get]
 
 
int PropertyCount [get]
 
 
int Type [get]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
static new QMetaObject StaticMetaObject [get]
 

Additional Inherited Members

- Public Types inherited from QtGui.QTextCharFormat
enum  UnderlineStyle {
  DashDotDotLine = 5, DashDotLine = 4, DashUnderline = 2, DotLine = 3,
  NoUnderline = 0, SingleUnderline = 1, SpellCheckUnderline = 7, WaveUnderline = 6
}
  More...
 
enum  VerticalAlignment {
  AlignBaseline = 6, AlignBottom = 5, AlignMiddle = 3, AlignNormal = 0,
  AlignSubScript = 2, AlignSuperScript = 1, AlignTop = 4
}
  More...
 
- Static Public Member Functions inherited from QtGui.QTextFormat
static bool operator!= (QTextFormat one, QTextFormat rhs)
 
 
static bool operator== (QTextFormat one, QTextFormat rhs)
 
 
- Protected Attributes inherited from QtGui.QTextFormat
SmokeInvocation interceptor
 

Detailed Description

The QTextImageFormat class provides formatting information for images in a QTextDocument.

Inline images are represented by an object replacement character (0xFFFC in Unicode) which has an associated QTextImageFormat. The image format specifies a name with setName() that is used to locate the image. The size of the rectangle that the image will occupy is specified using setWidth() and setHeight().

Images can be supplied in any format for which Qt has an image reader, so SVG drawings can be included alongside PNG, TIFF and other bitmap formats.

See also QImage and QImageReader.

Constructor & Destructor Documentation

QtGui.QTextImageFormat.QTextImageFormat ( System.Type  dummy)
protected
QtGui.QTextImageFormat.QTextImageFormat ( )

Creates a new image format object.

QtGui.QTextImageFormat.QTextImageFormat ( QTextFormat  format)
protected
QtGui.QTextImageFormat.QTextImageFormat ( QTextImageFormat  copy)

Member Function Documentation

override void QtGui.QTextImageFormat.CreateProxy ( )
virtual

Reimplemented from QtGui.QTextCharFormat.

new void QtGui.QTextImageFormat.Dispose ( )

Property Documentation

double QtGui.QTextImageFormat.Height
getset

Returns the height of the rectangle occupied by the image.

Sets the height of the rectangle occupied by the image.

bool QtGui.QTextImageFormat.IsValid
get

Returns true if this image format is valid; otherwise returns false.

string QtGui.QTextImageFormat.Name
getset

Returns the name of the image. The name refers to an entry in the application's resources file.

Sets the name of the image. The name is used to locate the image in the application's resources.

double QtGui.QTextImageFormat.Width
getset

Returns the width of the rectangle occupied by the image.

Sets the width of the rectangle occupied by the image.