public void StoreValues(Data data, string path) { data.SetValue(@"" + path + @"AllowPrinting", AllowPrinting.ToString()); data.SetValue(@"" + path + @"AllowScreenReader", AllowScreenReader.ToString()); data.SetValue(@"" + path + @"AllowToCopyContent", AllowToCopyContent.ToString()); data.SetValue(@"" + path + @"AllowToEditAssembly", AllowToEditAssembly.ToString()); data.SetValue(@"" + path + @"AllowToEditComments", AllowToEditComments.ToString()); data.SetValue(@"" + path + @"AllowToEditTheDocument", AllowToEditTheDocument.ToString()); data.SetValue(@"" + path + @"AllowToFillForms", AllowToFillForms.ToString()); data.SetValue(@"" + path + @"Enabled", Enabled.ToString()); data.SetValue(@"" + path + @"EncryptionLevel", EncryptionLevel.ToString()); data.SetValue(@"" + path + @"OwnerPassword", _ownerPassword); data.SetValue(@"" + path + @"RequireUserPassword", RequireUserPassword.ToString()); data.SetValue(@"" + path + @"RestrictPrintingToLowQuality", RestrictPrintingToLowQuality.ToString()); data.SetValue(@"" + path + @"UserPassword", _userPassword); }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("AllowPrinting=" + AllowPrinting.ToString()); sb.AppendLine("AllowScreenReader=" + AllowScreenReader.ToString()); sb.AppendLine("AllowToCopyContent=" + AllowToCopyContent.ToString()); sb.AppendLine("AllowToEditAssembly=" + AllowToEditAssembly.ToString()); sb.AppendLine("AllowToEditComments=" + AllowToEditComments.ToString()); sb.AppendLine("AllowToEditTheDocument=" + AllowToEditTheDocument.ToString()); sb.AppendLine("AllowToFillForms=" + AllowToFillForms.ToString()); sb.AppendLine("Enabled=" + Enabled.ToString()); sb.AppendLine("EncryptionLevel=" + EncryptionLevel.ToString()); sb.AppendLine("OwnerPassword="******"RequireUserPassword="******"RestrictPrintingToLowQuality=" + RestrictPrintingToLowQuality.ToString()); sb.AppendLine("UserPassword=" + UserPassword.ToString()); return(sb.ToString()); }