Пример #1
0
        public static HwpV3TabSettingsCollection Create(BinaryReader reader)
        {
            HwpV3TabSettingsCollection tabSettings = new HwpV3TabSettingsCollection();

            for (int i = 0; i < 40; i++)
            {
                tabSettings.Add(HwpV3TabSettings.Create(reader));
            }

            return(tabSettings);
        }
Пример #2
0
        public static HwpV3ParagraphShape Create(BinaryReader reader)
        {
            HwpV3ParagraphShape result = new HwpV3ParagraphShape();

            // 문단 왼쪽 여백
            result.LeftMargin = reader.ReadHUnit();

            // 문단 오른쪽 여백
            result.RightMargin = reader.ReadHUnit();

            // 문단 들여쓰기
            result.Indent = reader.ReadSHUnit();

            // 문단 줄 간격
            result.LineSpacing = reader.ReadHUnit();

            // 문안 아래 간격
            result.BottomMargin = reader.ReadHUnit();

            // 낱말 간격
            result.WordSpacing = reader.ReadByte();

            // 정렬 방식
            result.Alignment = reader.ReadByte();

            // 탭 설정
            result.TabSettings = HwpV3TabSettingsCollection.Create(reader);

            // 단 정의
            result.ColumnSettings = HwpV3ColumnSettings.Create(reader);

            // 음영 비율
            result.ShadeRate = reader.ReadByte();

            // 문단 테두리
            result.Border = reader.ReadByte();

            // 선 연결
            result.LineConnection = reader.ReadByte();

            // 문단 위 간격
            result.TopMargin = reader.ReadHUnit();

            // 예약
            result.Reserved = reader.ReadBytes(2);

            return(result);
        }