Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1305600 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceKey.cs
- BlockExpression.cs
- AppSettings.cs
- DataBoundControlHelper.cs
- MethodMessage.cs
- HostVisual.cs
- RtfToXamlLexer.cs
- DataGridViewCellStyle.cs
- FontSource.cs
- PermissionSetEnumerator.cs
- SoundPlayer.cs
- CryptoHelper.cs
- TraceHandler.cs
- COM2ComponentEditor.cs
- RemoteWebConfigurationHostServer.cs
- TextBoxRenderer.cs
- CryptoConfig.cs
- FormViewUpdatedEventArgs.cs
- BrushMappingModeValidation.cs
- storepermissionattribute.cs
- ListViewItem.cs
- ExternalDataExchangeService.cs
- StoreContentChangedEventArgs.cs
- unsafeIndexingFilterStream.cs
- BezierSegment.cs
- DictionaryBase.cs
- DESCryptoServiceProvider.cs
- DocumentSequence.cs
- CreateUserWizardStep.cs
- Base64Encoding.cs
- NameGenerator.cs
- TextModifier.cs
- AppliedDeviceFiltersEditor.cs
- LZCodec.cs
- ObservableCollection.cs
- ProjectionPlan.cs
- DbTransaction.cs
- _SpnDictionary.cs
- SEHException.cs
- FieldAccessException.cs
- StaticExtension.cs
- KeyValuePairs.cs
- CorrelationScope.cs
- HtmlInputImage.cs
- DynamicValidator.cs
- RegexNode.cs
- IgnoreFileBuildProvider.cs
- DropShadowBitmapEffect.cs
- MimeParameter.cs
- ImmComposition.cs
- DecimalConverter.cs
- CommandBindingCollection.cs
- BaseParser.cs
- AssemblyBuilder.cs
- _AutoWebProxyScriptWrapper.cs
- MachineKey.cs
- NumericPagerField.cs
- Italic.cs
- Page.cs
- BamlResourceDeserializer.cs
- AxHostDesigner.cs
- AtomPub10ServiceDocumentFormatter.cs
- WindowsIPAddress.cs
- Button.cs
- COM2ExtendedUITypeEditor.cs
- ObsoleteAttribute.cs
- WindowsRichEdit.cs
- ValidateNames.cs
- UITypeEditors.cs
- MessageSmuggler.cs
- Activity.cs
- AliasGenerator.cs
- FileInfo.cs
- WebPartConnectionsDisconnectVerb.cs
- SignedXml.cs
- RequestQueryProcessor.cs
- DetailsView.cs
- FillBehavior.cs
- TextMarkerSource.cs
- VisualTarget.cs
- ComponentConverter.cs
- oledbconnectionstring.cs
- BlockCollection.cs
- NestedContainer.cs
- GiveFeedbackEvent.cs
- NumberAction.cs
- WebServiceReceiveDesigner.cs
- ControlSerializer.cs
- TemplatedWizardStep.cs
- XhtmlConformanceSection.cs
- MethodResolver.cs
- Int64Storage.cs
- ReadOnlyDataSourceView.cs
- NamespaceMapping.cs
- AssociationTypeEmitter.cs
- ValidationHelper.cs
- TextRangeBase.cs
- DataRecordInfo.cs
- MulticastIPAddressInformationCollection.cs
- Set.cs