⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clsimages.cls

📁 This application provides much functionality for creating data-driven reports, including preview, gr
💻 CLS
字号:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "clsImages"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Option Explicit

Private colImages As Collection


Public Function Add(ByVal Image As IPictureDisp, _
                                        Optional ByVal Left As Single, _
                                        Optional ByVal Top As Single, _
                                        Optional ByVal Width, _
                                        Optional ByVal Height, _
                                        Optional ByVal PositionIsAbsolute As Boolean) As clsImageAttributes

Dim i As New clsImageAttributes

    With i
        Set .Image = Image
        .Left = Left
        .Top = Top
        .Width = Width
        .Height = Height
        .PositionIsAbsolute = PositionIsAbsolute
    End With
    colImages.Add i
    Set Add = i
    CQueue.Add objTypeImage, Count
End Function

Public Property Get Count() As Integer
    Count = colImages.Count
End Property

Public Property Get Item(ByVal Index As Integer) As clsImageAttributes
Attribute Item.VB_UserMemId = 0
    Set Item = colImages.Item(Index)
End Property

Private Sub Class_Initialize()
    Set colImages = New Collection
End Sub

Private Sub Class_Terminate()
    Set colImages = Nothing
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -