본문 바로가기

전체 글

(65)
C# 소수점 두 자리 또는 세 자리 표시(ToString) 소수점 두 자리 표시 'ToString' 메서드 사용 F2(영어F, 숫자2) 입력 소수점 이하 두 자리로 반올림 입력: 1234567.1234 결과: 1234567.12 double number = 1234567.1234; string formattedNumber = number.ToString("F2"); 소수점 세 자리 표시 'ToString' 메서드 사용 F3(영어F, 숫자3) 입력 소수점 이하 세 자리로 반올림 입력: 1234567.1234 결과: 1234567.123 double number = 1234567.1234; string formattedNumber = number.ToString("F3"); 숫자 천 단위마다 콤마 + 소수점 두 자리 표시 'ToString' 메서드 사용 N2(영어N..
C# 숫자 3자리마다 콤마 표시(ToString) 숫자 3자리마다 콤마 표시 'ToString' 메서드 사용 N0(영어N, 숫자0) 입력 입력: 1234567 결과: 1,234,567 int number = 1234567; string formattedNumber = number.ToString("N0"); 숫자 3자리마다 콤마 + 소수점 두 자리 표시 'ToString' 메서드 사용 N2(영어N, 숫자2) 입력 소수점 이하 두 자리로 반올림 입력: 1234567.12567 결과: 1,234,567.13 double number = 1234567.12567; string formattedNumber = number.ToString("N2");
C# Windows Forms(윈폼) 애플리케이션에서 콘솔 창을 함께 사용(AllocConsole) using System; using System.Runtime.InteropServices; using System.Windows.Forms; namespace WindowsFormsAppWithConsole { static class Program { [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] static extern bool AllocConsole(); [STAThread] static void Main() { AllocConsole(); // 콘솔 창 할당 ... } } }
[부트스트랩] Content - Tables https://getbootstrap.com/docs/5.1/content/tables/ Tables Documentation and examples for opt-in styling of tables (given their prevalent use in JavaScript plugins) with Bootstrap. getbootstrap.com .table .table --bs-table-bg: transparent; --bs-table-accent-bg: transparent; --bs-table-striped-color: #212529; --bs-table-striped-bg: rgba(0, 0, 0, 0.05); --bs-table-active-color: #212529; --bs-table-a..
[부트스트랩] content - images https://getbootstrap.com/docs/5.1/content/images/ Images Documentation and examples for opting images into responsive behavior (so they never become wider than their parent) and add lightweight styles to them—all via classes. getbootstrap.com .img-fluid max-width: 100%; height: auto; .container style="width: 100vh;height:30vh;" 수정 후 확인 .img-thumbnail 1px 둥근 테두리도 렌더링 padding: 0.25rem; background-..
[부트스트랩] Content - Typography https://getbootstrap.com/docs/5.1/content/typography/ Typography Documentation and examples for Bootstrap typography, including global settings, headings, body text, lists, and more. getbootstrap.com .text-muted $text-muted: $gray-600; .text-muted --bs-text-opacity: 1; color: #6c757d!important; Class .text-muted .display-* $display-font-sizes: ( 1: 5rem, 2: 4.5rem, 3: 4rem, 4: 3.5rem, 5: 3rem, 6..
[부트스트랩] Layout - Gutters https://getbootstrap.com/docs/5.1/layout/gutters/ Gutters Gutters are the padding between your columns, used to responsively space and align content in the Bootstrap grid system. getbootstrap.com 수평 거터 .gx-* 클래스 사용(g: gutter, x: x축 left & right) 속성: --bs-gutter-x: 값(*) *(0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 3rem) 6이상은 없음 .gx-6일 때 .gx-4처럼 보이는 것은 .row 클래스 속성이 --bs-gutter-x: 1.5rem 이..
[부트스트랩] Layout - Columns https://getbootstrap.com/docs/5.1/layout/columns/ Columns Learn how to modify columns with a handful of options for alignment, ordering, and offsetting thanks to our flexbox grid system. Plus, see how to use column classes to manage widths of non-grid elements. getbootstrap.com 수직 정렬 row align-items-start row align-items-center row align-items-end .container 1 2 3 1 2 3 1 2 3 align-self-start al..

반응형