当前位置: 首页>>代码示例>>C#>>正文


C# NPOI.WriteByte方法代码示例

本文整理汇总了C#中NPOI.WriteByte方法的典型用法代码示例。如果您正苦于以下问题:C# NPOI.WriteByte方法的具体用法?C# NPOI.WriteByte怎么用?C# NPOI.WriteByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在NPOI的用法示例。


在下文中一共展示了NPOI.WriteByte方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Serialize

 public void Serialize(NPOI.Util.IO.LittleEndianOutput out1)
 {
     out1.WriteShort(FirstRow);
     out1.WriteShort(LastRow);
     out1.WriteByte(FirstColumn);
     out1.WriteByte(LastColumn);
 }
开发者ID:babywzazy,项目名称:Server,代码行数:7,代码来源:CellRangeAddress8Bit.cs

示例2: Serialize

        /**
         * called by the class that Is responsible for writing this sucker.
         * Subclasses should implement this so that their data Is passed back in a
         * @param offset to begin writing at
         * @param data byte array containing instance data
         * @return number of bytes written
         */
        public override void Serialize(NPOI.Util.IO.LittleEndianOutput out1)
        {
            int field_7_length_custom_menu = field_14_custom_menu_text.Length;
            int field_8_length_description_text = field_15_description_text.Length;
            int field_9_length_help_topic_text = field_16_help_topic_text.Length;
            int field_10_length_status_bar_text = field_17_status_bar_text.Length;
            int rawNameSize = NameRawSize;

            // size defined below
            out1.WriteShort(OptionFlag);
            out1.WriteByte(KeyboardShortcut);
            out1.WriteByte(NameTextLength);
            // Note - formula size is not immediately before encoded formula, and does not include any array constant data
            out1.WriteShort(field_13_name_definition.EncodedTokenSize);
            out1.WriteShort(field_5_externSheetIndex_plus1);
            out1.WriteShort(field_6_sheetNumber);
            out1.WriteByte(field_7_length_custom_menu);
            out1.WriteByte(field_8_length_description_text);
            out1.WriteByte(field_9_length_help_topic_text);
            out1.WriteByte(field_10_length_status_bar_text);
            out1.WriteByte(field_11_nameIsMultibyte ? 1 : 0);

            if (IsBuiltInName)
            {
                out1.WriteByte(field_12_built_in_code);
            }
            else
            {
                String nameText = field_12_name_text;
                if (field_11_nameIsMultibyte)
                {
                    StringUtil.PutUnicodeLE(nameText,out1);
                }
                else
                {
                    StringUtil.PutCompressedUnicode(nameText, out1);
                }
            }
            field_13_name_definition.SerializeTokens(out1);
            field_13_name_definition.SerializeArrayConstantData(out1);

            StringUtil.PutCompressedUnicode(CustomMenuText,out1);
            StringUtil.PutCompressedUnicode(DescriptionText, out1);
            StringUtil.PutCompressedUnicode(HelpTopicText, out1);
            StringUtil.PutCompressedUnicode(StatusBarText, out1);
        }
开发者ID:uwitec,项目名称:web-mvc-logistics,代码行数:53,代码来源:NameRecord.cs

示例3: SerializeExtraData

 protected override void SerializeExtraData(NPOI.Util.IO.LittleEndianOutput out1)
 {
     out1.WriteByte(field_5_flags);
     out1.WriteByte(field_6_res);
     out1.WriteShort(field_7_rowInputRow);
     out1.WriteShort(field_8_colInputRow);
     out1.WriteShort(field_9_rowInputCol);
     out1.WriteShort(field_10_colInputCol);
 }
开发者ID:uwitec,项目名称:web-mvc-logistics,代码行数:9,代码来源:TableRecord.cs

示例4: Serialize

 public override void Serialize(NPOI.Util.IO.LittleEndianOutput out1)
 {
     out1.WriteShort(field_1_iEntry);
     out1.WriteShort(field_2_grbit);
     field_3_doper1.Serialize(out1);
     field_4_doper2.Serialize(out1);
     if (field_3_doper1.LengthOfString > 0)
     {
         out1.WriteByte(rgch1_multibyte?1:0);
         if (rgch1_multibyte)
         {
             StringUtil.PutUnicodeLE(field_5_rgch1, out1);
         }
         else
         {
             StringUtil.PutCompressedUnicode(field_5_rgch1, out1);
         }
     }
     if (field_4_doper2.LengthOfString > 0)
     {
         out1.WriteByte(rgch2_multibyte?1:0);
         if (rgch2_multibyte)
         {
             StringUtil.PutUnicodeLE(field_6_rgch2, out1);
         }
         else
         {
             StringUtil.PutCompressedUnicode(field_6_rgch2, out1);
         }
     }
 }
开发者ID:babywzazy,项目名称:Server,代码行数:31,代码来源:AutoFilterRecord.cs

示例5: Serialize

 public override void Serialize(NPOI.Util.IO.LittleEndianOutput out1)
 {
     out1.WriteByte(field_1_riser);
     out1.WriteByte(field_2_taper);
 }
开发者ID:uwitec,项目名称:web-mvc-logistics,代码行数:5,代码来源:Chart3DBarShape.cs


注:本文中的NPOI.WriteByte方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。