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


C# Folder.GetDetailsOf方法代码示例

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


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

示例1: CompressedFileInfo

 static public void CompressedFileInfo(ref List<FileTag> arr, Folder Folder, FolderItem FolderItem) {
     FileTag temp = new FileTag();
     int[] index = { 0, 1, 2 };
     string[] name = { "File name", "File size", "Item type" };
     for (int i = 0; i < 11; i++) {
         temp.TagName = name[i];
         temp.TagValue = Folder.GetDetailsOf(FolderItem, index[i]).ToString();
         arr.Add(temp);
     }
 }
开发者ID:divyamamgai,项目名称:FileOrganizer,代码行数:10,代码来源:File+Tag+Extract.cs

示例2: ImageFileInfo

 static public void ImageFileInfo(ref List<FileTag> arr, Folder Folder, FolderItem FolderItem) {
     FileTag temp = new FileTag();
     int[] index = { 0, 1, 21, 30, 31, 32, 251, 252, 255, 256, 258, 260 };
     string[] name = { "File name", "File size", "Title", "Camera model", "Dimensions", "Camera maker", "Exposure time", "F-stop", "35mm focal length", "ISO speed", "Lens model", "Max aperture" };
     for (int i = 0; i < 12; i++) {
         temp.TagName = name[i];
         temp.TagValue = Folder.GetDetailsOf(FolderItem, index[i]).ToString();
         arr.Add(temp);
     }
 }
开发者ID:divyamamgai,项目名称:FileOrganizer,代码行数:10,代码来源:File+Tag+Extract.cs

示例3: VideoFileInfo

 static public void VideoFileInfo(ref List<FileTag> arr, Folder Folder, FolderItem FolderItem) {
     FileTag temp = new FileTag();
     int[] index = { 0, 1, 15, 21, 303, 304, 305, 306, 308 };
     string[] name = { "File name", "File size", "Year", "Title", "Data rate", "Frame height", "Frame rate", "Frame width", "Total Bitrate" };
     for (int i = 0; i < 9; i++) {
         temp.TagName = name[i];
         temp.TagValue = Folder.GetDetailsOf(FolderItem, index[i]).ToString();
         arr.Add(temp);
     }
 }
开发者ID:divyamamgai,项目名称:FileOrganizer,代码行数:10,代码来源:File+Tag+Extract.cs

示例4: AudioFileInfo

 static public void AudioFileInfo(ref List<FileTag> arr, Folder Folder, FolderItem FolderItem) {
     FileTag temp = new FileTag();
     int[] index = { 0, 13, 14, 15, 16, 21, 26, 28, 230 };
     string[] name = { "Name", "Contributing artists", "Album", "Year", "Genre", "Title", "Track number", "Bit rate", "Album artist" };
     for (int i = 0; i < 9; i++) {
         temp.TagName = name[i];
         temp.TagValue = Folder.GetDetailsOf(FolderItem, index[i]).ToString();
         if (i == 7) temp.TagValue = temp.TagValue.Substring(1, temp.TagValue.Length - 1);
         arr.Add(temp);
     }
 }
开发者ID:divyamamgai,项目名称:FileOrganizer,代码行数:11,代码来源:File+Tag+Extract.cs

示例5: GetExtendedPropertyHeaders

        private static Dictionary<int, string> GetExtendedPropertyHeaders(Folder directory)
        {
            Dictionary<int, string> headers = new Dictionary<int, string>();

            for (int i = 0; i < EXTENDED_HEADER_COUNT + 1; i++)
            {
                string header = directory.GetDetailsOf(null, i);
                if (!string.IsNullOrEmpty(header))
                {
                    headers.Add(i, header);
                }
            }

            return headers;
        }
开发者ID:lxgreen,项目名称:DefragTools,代码行数:15,代码来源:DefragEngineUtils.cs

示例6: GeneralFileInfo

 static public void GeneralFileInfo(ref List<FileTag> arr, Folder Folder, FolderItem FolderItem) {
     FileTag temp = new FileTag();
     int[] index = { 0, 1, 2, 20, 150, 153, 158, 175, 192 };
     string[] name = { "File name", "File size", "Item type", "Authors", "Pages", "Word count", "File version", "Encryption status", "Language" };
     for (int i = 0; i < 9; i++) {
         temp.TagName = name[i];
         temp.TagValue = (Folder.GetDetailsOf(FolderItem, index[i])).ToString();
         arr.Add(temp);
     }
 }
开发者ID:divyamamgai,项目名称:FileOrganizer,代码行数:10,代码来源:File+Tag+Extract.cs


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