Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BookmarkTable.cs
- DBAsyncResult.cs
- PeerApplicationLaunchInfo.cs
- ProbeDuplexAsyncResult.cs
- JsonDeserializer.cs
- PagerSettings.cs
- CellLabel.cs
- ImagingCache.cs
- HttpRequest.cs
- InputScopeConverter.cs
- LoginView.cs
- ConfigurationElement.cs
- OleDbDataAdapter.cs
- WebHeaderCollection.cs
- ListViewGroupItemCollection.cs
- PropertyTabAttribute.cs
- TableRowGroup.cs
- ShaderEffect.cs
- ListBindingConverter.cs
- StylusDevice.cs
- GetPolicyDetailsRequest.cs
- XmlDesigner.cs
- AssemblyUtil.cs
- TypedReference.cs
- UidManager.cs
- TypeSource.cs
- DataGridLength.cs
- SchemaMerger.cs
- SynchronizedDispatch.cs
- ObjectListCommandsPage.cs
- StateMachineWorkflowDesigner.cs
- ManualResetEvent.cs
- EntityRecordInfo.cs
- SQLMembershipProvider.cs
- HandledMouseEvent.cs
- SimpleRecyclingCache.cs
- ImportOptions.cs
- ToolStripItemDataObject.cs
- LocalBuilder.cs
- HScrollBar.cs
- SecurityUtils.cs
- SafeProcessHandle.cs
- CustomErrorsSectionWrapper.cs
- SetterBaseCollection.cs
- Int32RectConverter.cs
- CodeDOMUtility.cs
- TextTreeTextBlock.cs
- TreeWalker.cs
- Evaluator.cs
- TextEditorSelection.cs
- TryExpression.cs
- CompilationSection.cs
- AddressHeaderCollection.cs
- CompilerGlobalScopeAttribute.cs
- TextWriterTraceListener.cs
- UriSection.cs
- CellTreeNodeVisitors.cs
- Decimal.cs
- Opcode.cs
- EvidenceBase.cs
- DispatcherSynchronizationContext.cs
- TableChangeProcessor.cs
- StrokeCollection.cs
- NonBatchDirectoryCompiler.cs
- XmlText.cs
- CodeAccessPermission.cs
- ProxyHwnd.cs
- __Error.cs
- TraceContextEventArgs.cs
- FormatVersion.cs
- StreamingContext.cs
- ComponentChangedEvent.cs
- MaskedTextBoxDesignerActionList.cs
- TableCellCollection.cs
- FixedSOMLineRanges.cs
- RecognizedAudio.cs
- TextMetrics.cs
- WindowsAuthenticationEventArgs.cs
- IncrementalReadDecoders.cs
- ApplicationProxyInternal.cs
- MultipartContentParser.cs
- ReferenceSchema.cs
- ParameterBuilder.cs
- ConstraintCollection.cs
- WorkflowFormatterBehavior.cs
- ClassImporter.cs
- WindowsNonControl.cs
- NamespaceInfo.cs
- PriorityQueue.cs
- XmlObjectSerializerContext.cs
- ConfigXmlText.cs
- SmiRecordBuffer.cs
- AtomContentProperty.cs
- FormParameter.cs
- TempFiles.cs
- BlurBitmapEffect.cs
- RawUIStateInputReport.cs
- BlurEffect.cs
- CodeAttributeDeclarationCollection.cs
- PrintingPermission.cs