File tree Expand file tree Collapse file tree
Create-ink-with-multipletraces/.NET/Create-ink-with-multipletraces
Create-ink/.NET/Create-ink
Modify-ink-color/.NET/Modify_ink_color
Modify-ink-effect/.NET/Modify-ink-effect
Modify-ink-points/.NET/Modify-ink-Points
Modify-ink-thickness/.NET/Modify-ink-thickness
Remove-ink/.NET/Remove_ink Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ static void Main(string[] args)
4242 // Sets the brush size for the ink stroke.
4343 trace . Brush . Size = new SizeF ( 5f , 5f ) ;
4444 }
45- using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"../../../ Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
45+ using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
4646 {
4747 //Saves the Word document to file stream.
4848 document . Save ( outputFileStream , FormatType . Docx ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ static void Main(string[] args)
3535 brush . Size = new SizeF ( 5f , 5f ) ;
3636 // Sets the ink effect to 'Galaxy'.
3737 brush . InkEffect = OfficeInkEffectType . Galaxy ;
38- using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"../../../ Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
38+ using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
3939 {
4040 //Saves the Word document to file stream.
4141 document . Save ( outputFileStream , FormatType . Docx ) ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ static void Main(string[] args)
2222 IOfficeInkTrace inkTrace = ink . Traces [ 0 ] ;
2323 // Modify the brush color to Color.Red.
2424 inkTrace . Brush . Color = Color . Red ;
25- using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"../../../ Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
25+ using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
2626 {
2727 //Saves the Word document to file stream.
2828 document . Save ( outputFileStream , FormatType . Docx ) ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ static void Main(string[] args)
2222 // Modify the ink effect to 'Lava'.
2323 inkTrace . Brush . InkEffect = OfficeInkEffectType . Lava ;
2424 // Creates a file stream to save the modified document.
25- using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"../../../ Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
25+ using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
2626 {
2727 //Saves the Word document to file stream.
2828 document . Save ( outputFileStream , FormatType . Docx ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ static void Main(string[] args)
2323 // Close the ink stroke by setting the last point to be the same as the first point
2424 inkTrace . Points [ inkTrace . Points . Length - 1 ] = new PointF ( inkTrace . Points [ 0 ] . X , inkTrace . Points [ 0 ] . Y ) ;
2525 // Creates a file stream to save the modified document.
26- using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"../../../ Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
26+ using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
2727 {
2828 //Saves the Word document to file stream.
2929 document . Save ( outputFileStream , FormatType . Docx ) ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ static void Main(string[] args)
2222 IOfficeInkTrace inkTrace = ink . Traces [ 0 ] ;
2323 // Modify the ink size (thickness) to 1 point.
2424 inkTrace . Brush . Size = new SizeF ( 1f , 1f ) ;
25- using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"../../../ Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
25+ using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
2626 {
2727 //Saves the Word document to file stream.
2828 document . Save ( outputFileStream , FormatType . Docx ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ static void Main(string[] args)
2525 i -- ;
2626 }
2727 }
28- using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"../../../ Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
28+ using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"Output/Result.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
2929 {
3030 //Saves the Word document to file stream.
3131 document . Save ( outputFileStream , FormatType . Docx ) ;
You can’t perform that action at this time.
0 commit comments