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

📄 clsedit.vb

📁 This is a Text Editor Created USing VB.net
💻 VB
字号:
Public Class clsEdit

    Public Sub Huruf(ByVal namaRTF As RichTextBox, ByVal kelompok As FontStyle)
        If namaRTF.SelectedText.Length <> 0 Then
            namaRTF.SelectionFont = New Font(namaRTF.SelectionFont.Name, namaRTF.SelectionFont.Size, kelompok)
        Else
            namaRTF.Font = New Font(namaRTF.SelectionFont.Name, namaRTF.SelectionFont.Size, kelompok)
        End If
    End Sub

    Public Sub Perataan(ByVal namaRTF As RichTextBox, ByVal rata As HorizontalAlignment)
        With namaRTF
            If .SelectedText.Length = 0 Then .SelectAll()
            .SelectionAlignment = rata
        End With
    End Sub

    Public Sub Copy(ByVal namaRTF As RichTextBox)
        If namaRTF.SelectedText.Length > 0 Then Clipboard.SetText(namaRTF.SelectedText)
    End Sub

    Public Sub Cut(ByVal namaRTF As RichTextBox)
        If namaRTF.SelectedText.Length > 0 Then
            Clipboard.SetText(namaRTF.SelectedText)
            namaRTF.SelectedText = ""
        End If
    End Sub

    Public Sub Paste(ByVal namaRTF As RichTextBox)
        namaRTF.SelectedText = Clipboard.GetText
    End Sub

End Class

⌨️ 快捷键说明

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